trying to fix auto_..._error tests to detect c++17 using boost.config macros (because msvc does not correctly set __cplusplus...)
This commit is contained in:
parent
22bc450de0
commit
366d2eb6ec
@ -6,7 +6,11 @@
|
||||
|
||||
// Test auto error (for free func, but same for all contracts).
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L // On C++17 or later.
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// On C++17 or later.
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
!defined(BOOST_NO_CXX17_HDR_OPTIONAL)
|
||||
#error "C++17 copy elision invalidates test so forcing expected failure"
|
||||
#else
|
||||
|
||||
|
@ -6,7 +6,11 @@
|
||||
|
||||
// Test auto error after pre (for free func, but same for all contracts).
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L // On C++17 or later.
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// On C++17 or later.
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
!defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
|
||||
#error "C++17 copy elision invalidates test so forcing expected failure"
|
||||
#else
|
||||
|
||||
|
@ -6,7 +6,11 @@
|
||||
|
||||
// Test auto error after old (for free func, but same for all contracts).
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L // On C++17 or later.
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// On C++17 or later.
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
!defined(BOOST_NO_CXX17_STD_APPLY)
|
||||
#error "C++17 copy elision invalidates test so forcing expected failure"
|
||||
#else
|
||||
|
||||
|
@ -6,7 +6,11 @@
|
||||
|
||||
// Test auto error after post (for free func, but same for all contracts).
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L // On C++17 or later.
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// On C++17 or later.
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
!defined(BOOST_NO_CXX17_STD_INVOKE)
|
||||
#error "C++17 copy elision invalidates test so forcing expected failure"
|
||||
#else
|
||||
|
||||
|
@ -6,7 +6,11 @@
|
||||
|
||||
// Test auto error after except (for free func, but same for all contracts).
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L // On C++17 or later.
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// On C++17 or later.
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
!defined(BOOST_NO_CXX17_IF_CONSTEXPR)
|
||||
#error "C++17 copy elision invalidates test so forcing expected failure"
|
||||
#else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user