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.
I don't get the use of
NOEXCEPTmacrocurlcpp/include/curl_config.h
Lines 25 to 35 in 0c2f06d
noexceptis 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__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.