Drop dependency on Boost.Predef

This commit is contained in:
Andrzej Krzemienski
2024-08-15 10:43:43 +02:00
parent 3a8556186e
commit 794e03af30
5 changed files with 4 additions and 7 deletions

View File

@ -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")

View File

@ -18,7 +18,6 @@ The implementation uses the following other Boost modules:
# config
# core
# move
# predef
# static_assert
# throw_exception
# type_traits

View File

@ -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.

View File

@ -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

View File

@ -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