RESTinio
Loading...
Searching...
No Matches
compiler_features.hpp
Go to the documentation of this file.
1/*
2 * RESTinio
3 */
4
12#pragma once
13
14#include <utility>
15
36#define RESTINIO_ENSURE_NOEXCEPT_CALL(expr) \
37 static_assert(noexcept(expr), "this call is expected to be noexcept: " #expr); \
38 expr
39
65#define RESTINIO_STATIC_ASSERT_NOEXCEPT(expr) \
66 static_assert(noexcept(expr), #expr " is expected to be noexcept" )
67
92#define RESTINIO_STATIC_ASSERT_NOT_NOEXCEPT(expr) \
93 static_assert(!noexcept(expr), #expr " is not expected to be noexcept" )
94