forked from boostorg/smart_ptr
Remove uses of BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
This commit is contained in:
@@ -5,10 +5,9 @@ Copyright 2012-2015 Glen Joseph Fernandes
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX)
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/smart_ptr/make_shared.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
template<class T = void>
|
||||
struct creator {
|
||||
@@ -83,9 +82,3 @@ int main()
|
||||
}
|
||||
return boost::report_errors();
|
||||
}
|
||||
#else
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -13,12 +13,7 @@
|
||||
#include <boost/config/pragma_message.hpp>
|
||||
#include <boost/config/helper_macros.hpp>
|
||||
|
||||
#if defined( BOOST_NO_CXX11_CONSTEXPR )
|
||||
|
||||
BOOST_PRAGMA_MESSAGE("Skipping test due to BOOST_NO_CXX11_CONSTEXPR")
|
||||
int main() {}
|
||||
|
||||
#elif BOOST_WORKAROUND( BOOST_MSVC, < 1930 )
|
||||
#if BOOST_WORKAROUND( BOOST_MSVC, < 1930 )
|
||||
|
||||
// MSVC does not implement static initialization for constexpr constructors
|
||||
BOOST_PRAGMA_MESSAGE("Skipping test due to BOOST_MSVC < 1930")
|
||||
@@ -36,11 +31,6 @@ int main() {}
|
||||
BOOST_PRAGMA_MESSAGE("Skipping test due to _LIBCPP_VERSION " BOOST_STRINGIZE(_LIBCPP_VERSION))
|
||||
int main() {}
|
||||
|
||||
#elif defined( BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX )
|
||||
|
||||
BOOST_PRAGMA_MESSAGE("Skipping test due to BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX")
|
||||
int main() {}
|
||||
|
||||
#else
|
||||
|
||||
#include <boost/smart_ptr/atomic_shared_ptr.hpp>
|
||||
|
||||
@@ -5,10 +5,9 @@ Copyright 2012-2015 Glen Joseph Fernandes
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
#include <boost/config.hpp>
|
||||
#if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX)
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/smart_ptr/make_shared.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -46,9 +45,3 @@ int main()
|
||||
}
|
||||
return boost::report_errors();
|
||||
}
|
||||
#else
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,6 @@ int main()
|
||||
BOOST_TEST(result->x == 0);
|
||||
BOOST_TEST(result->y == 0);
|
||||
}
|
||||
#if !defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX)
|
||||
{
|
||||
std::unique_ptr<type> result =
|
||||
boost::make_unique<type>({ 1, 2 });
|
||||
@@ -44,6 +43,6 @@ int main()
|
||||
BOOST_TEST(result->x == 1);
|
||||
BOOST_TEST(result->y == 2);
|
||||
}
|
||||
#endif
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user