RESTinio
|
Detection of compiler version and absence of various features. More...
#include <utility>
Go to the source code of this file.
Macros | |
#define | RESTINIO_ENSURE_NOEXCEPT_CALL(expr) |
A wrapper around static_assert for checking that an expression is noexcept and execution of that expression. | |
#define | RESTINIO_STATIC_ASSERT_NOEXCEPT(expr) static_assert(noexcept(expr), #expr " is expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is noexcept. | |
#define | RESTINIO_STATIC_ASSERT_NOT_NOEXCEPT(expr) static_assert(!noexcept(expr), #expr " is not expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is not noexcept. | |
Detection of compiler version and absence of various features.
Definition in file compiler_features.hpp.
#define RESTINIO_ENSURE_NOEXCEPT_CALL | ( | expr | ) |
A wrapper around static_assert for checking that an expression is noexcept and execution of that expression.
Usage example:
Definition at line 36 of file compiler_features.hpp.
#define RESTINIO_STATIC_ASSERT_NOEXCEPT | ( | expr | ) | static_assert(noexcept(expr), #expr " is expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is noexcept.
Usage example:
Definition at line 65 of file compiler_features.hpp.
#define RESTINIO_STATIC_ASSERT_NOT_NOEXCEPT | ( | expr | ) | static_assert(!noexcept(expr), #expr " is not expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is not noexcept.
Usage example:
Definition at line 92 of file compiler_features.hpp.