Disable exception_ptr_test2 when exceptions aren't enabled

This commit is contained in:
Peter Dimov
2022-01-26 01:49:45 +02:00
parent eafe6dbd5c
commit 9259706f08

View File

@ -4,7 +4,14 @@
#include <boost/config.hpp>
#if defined(BOOST_NO_CXX11_HDR_EXCEPTION)
#if defined(BOOST_NO_EXCEPTIONS)
#include <boost/config/pragma_message.hpp>
BOOST_PRAGMA_MESSAGE( "Skipping test because BOOST_NO_EXCEPTIONS is defined" )
int main() {}
#elif defined(BOOST_NO_CXX11_HDR_EXCEPTION)
#include <boost/config/pragma_message.hpp>
BOOST_PRAGMA_MESSAGE( "Skipping test because BOOST_NO_CXX11_HDR_EXCEPTION is defined" )