forked from boostorg/optional
Drop dependency on Boost.Predef
This commit is contained in:
@ -18,11 +18,9 @@ target_link_libraries(boost_optional
|
||||
Boost::config
|
||||
Boost::core
|
||||
Boost::move
|
||||
Boost::predef
|
||||
Boost::static_assert
|
||||
Boost::throw_exception
|
||||
Boost::type_traits
|
||||
Boost::utility
|
||||
)
|
||||
|
||||
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
||||
|
@ -18,7 +18,6 @@ The implementation uses the following other Boost modules:
|
||||
# config
|
||||
# core
|
||||
# move
|
||||
# predef
|
||||
# static_assert
|
||||
# throw_exception
|
||||
# type_traits
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
* *Breaking change.* Dropped support for C++03. C++11 is now the required minimum.
|
||||
* Dropped dependency on Boost.Utility.
|
||||
* Dropped dependency on Boost.Predef.
|
||||
* A bit faster implementation of some relational operations.
|
||||
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/config/workaround.hpp>
|
||||
#include <boost/predef.h>
|
||||
#include <boost/type_traits.hpp>
|
||||
|
||||
// The condition to use POD implementation
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "boost/core/lightweight_test.hpp"
|
||||
#include "boost/optional/detail/optional_config.hpp"
|
||||
#include "boost/predef.h"
|
||||
//#include "boost/predef.h"
|
||||
#include <string>
|
||||
|
||||
int main()
|
||||
@ -19,13 +19,13 @@ int main()
|
||||
#if defined(__GNUC__)
|
||||
|
||||
std::string emptys;
|
||||
|
||||
|
||||
#ifdef BOOST_INTEL_CXX_VERSION
|
||||
BOOST_TEST_EQ(emptys, "HAS INTEL INSIDE");
|
||||
#else
|
||||
BOOST_TEST_EQ(emptys, "NO INTEL INSIDE");
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||
BOOST_TEST_EQ(emptys, "HAS RVALUE REFS");
|
||||
#else
|
||||
|
Reference in New Issue
Block a user