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::config
Boost::core Boost::core
Boost::move Boost::move
Boost::predef
Boost::static_assert Boost::static_assert
Boost::throw_exception Boost::throw_exception
Boost::type_traits Boost::type_traits
Boost::utility
) )
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") 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 # config
# core # core
# move # move
# predef
# static_assert # static_assert
# throw_exception # throw_exception
# type_traits # type_traits

View File

@ -15,6 +15,7 @@
* *Breaking change.* Dropped support for C++03. C++11 is now the required minimum. * *Breaking change.* Dropped support for C++03. C++11 is now the required minimum.
* Dropped dependency on Boost.Utility. * Dropped dependency on Boost.Utility.
* Dropped dependency on Boost.Predef.
* A bit faster implementation of some relational operations. * A bit faster implementation of some relational operations.

View File

@ -14,7 +14,6 @@
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/config/workaround.hpp> #include <boost/config/workaround.hpp>
#include <boost/predef.h>
#include <boost/type_traits.hpp> #include <boost/type_traits.hpp>
// The condition to use POD implementation // The condition to use POD implementation

View File

@ -11,7 +11,7 @@
#include "boost/core/lightweight_test.hpp" #include "boost/core/lightweight_test.hpp"
#include "boost/optional/detail/optional_config.hpp" #include "boost/optional/detail/optional_config.hpp"
#include "boost/predef.h" //#include "boost/predef.h"
#include <string> #include <string>
int main() int main()