Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOEXCEPT #125

Open
Xeverous opened this issue Feb 24, 2020 · 0 comments
Open

NOEXCEPT #125

Xeverous opened this issue Feb 24, 2020 · 0 comments

Comments

@Xeverous
Copy link
Contributor

I don't get the use of NOEXCEPT macro

#ifndef __curlcpp__curl_config__
#define __curlcpp__curl_config__
#if defined(_MSC_VER)
#define NOEXCEPT
#include <ciso646>
#else
#define NOEXCEPT noexcept
#endif
#endif /* defined(__curlcpp__curl_config__) */

  • noexcept is a mandatory language feature and a conforming C++11 compiler must support it
  • <ciso646> has been removed in C++20, so a conforming implementation may actually fail to build
  • The __curlcpp__curl_config__ is technically undefined behavior (any names containing __, especially the ones starting with double underscore or an underscore + uppercase letter are reserved for the implementation) - this is obviously very unlikely to cause problems, but mentioning this in case you care for maximum conformance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant