diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-03-23 14:12:57 +0100 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-03-24 14:29:57 +0800 |
commit | d1bc057a220f33a79501318477f8e9af1111229f (patch) | |
tree | d7d67d260d89f768eafee47a13ceedd15d77e82b | |
parent | 956d8ea37247b34a5300c9d55abc7c75324fff33 (diff) | |
download | fork-ledger-d1bc057a220f33a79501318477f8e9af1111229f.tar.gz fork-ledger-d1bc057a220f33a79501318477f8e9af1111229f.tar.bz2 fork-ledger-d1bc057a220f33a79501318477f8e9af1111229f.zip |
Bump required Boost version to 1.72
-rw-r--r-- | CMakeLists.txt | 32 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/ptree.cc | 5 | ||||
-rw-r--r-- | src/system.hh.in | 12 | ||||
-rw-r--r-- | src/utils.cc | 4 | ||||
-rw-r--r-- | src/utils.h | 4 |
6 files changed, 3 insertions, 56 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eb13f777..8b63a562 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ set(Required_CMake_Version 3.16.2) +set(Required_Boost_Version 1.72) cmake_minimum_required(VERSION ${Required_CMake_Version}) @@ -83,7 +84,7 @@ else() endif() # Set BOOST_ROOT to help CMake to find the right Boost version -find_package(Boost 1.49.0 +find_package(Boost ${Required_Boost_Version} REQUIRED date_time filesystem system iostreams regex unit_test_framework ${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide) @@ -182,35 +183,6 @@ endif() cmake_pop_check_state() -# Check if fix for https://github.com/boostorg/python/issues/39 is needed -if (HAVE_BOOST_PYTHON) -cmake_push_check_state() - -set(CMAKE_REQUIRED_INCLUDES - ${CMAKE_INCLUDE_PATH} ${Boost_INCLUDE_DIRS} ${Python_INCLUDE_DIRS}) -set(CMAKE_REQUIRED_LIBRARIES - ${Boost_LIBRARIES} ${Python_LIBRARIES} ${PROFILE_LIBS}) - -check_cxx_source_compiles(" -#include <boost/python.hpp> - -struct X { int y; }; - -int main() -{ - boost::python::make_setter(&X::y); - return 0; -}" BOOST_MAKE_SETTER_COMPILES) - -if (BOOST_MAKE_SETTER_COMPILES) - set(HAVE_BOOST_159_ISSUE_39 0) -else() - set(HAVE_BOOST_159_ISSUE_39 1) -endif() - -cmake_pop_check_state() -endif() - ######################################################################## include_directories(${CMAKE_INCLUDE_PATH}) @@ -61,7 +61,7 @@ current `master` branch: Dependency | Version (or greater) ------------|--------------------- [CMake] | 3.16.2 -[Boost] | 1.49 +[Boost] | 1.72 [GMP] | 4.2.2 [MPFR] | 2.4.0 [utfcpp] | 2.3.4 diff --git a/src/ptree.cc b/src/ptree.cc index a37d0be5..01bf16b0 100644 --- a/src/ptree.cc +++ b/src/ptree.cc @@ -80,12 +80,7 @@ void format_ptree::flush() switch (format) { case FORMAT_XML: -#if BOOST_VERSION >= 105600 auto indented = property_tree::xml_writer_make_settings<std::string> (' ', 2); -#else - property_tree::xml_writer_settings<char> indented(' ', 2); -#endif - property_tree::write_xml(out, pt, indented); out << std::endl; break; diff --git a/src/system.hh.in b/src/system.hh.in index 60ea0fd8..a6c465df 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -70,7 +70,6 @@ #define HAVE_BOOST_PYTHON @HAVE_BOOST_PYTHON@ #define HAVE_GPGME @HAVE_GPGME@ #define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@ -#define HAVE_BOOST_159_ISSUE_39 @HAVE_BOOST_159_ISSUE_39@ #define HAVE_BOOST_NOWIDE @HAVE_BOOST_NOWIDE@ #define DEBUG_MODE @DEBUG_MODE@ @@ -216,17 +215,6 @@ #include <boost/iterator/indirect_iterator.hpp> -#if BOOST_VERSION == 105900 && HAVE_BOOST_159_ISSUE_39 -// Fix for https://github.com/boostorg/python/issues/39 -namespace boost { namespace python { -template <class D> -inline object make_setter(D const& x) -{ - return detail::make_setter(x, default_call_policies(), is_member_pointer<D>(), 0); -} -}} -#endif - #endif // HAVE_BOOST_PYTHON #endif // INCLUDED_SYSTEM_HH diff --git a/src/utils.cc b/src/utils.cc index 1d457891..baf5a27a 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -849,11 +849,7 @@ path resolve_path(const path& pathname) path temp = pathname; if (temp.string()[0] == '~') temp = expand_path(temp); -#if (BOOST_VERSION >= 106000) temp.lexically_normal(); -#else - temp.normalize(); -#endif return temp; } diff --git a/src/utils.h b/src/utils.h index b09377b8..9cc51396 100644 --- a/src/utils.h +++ b/src/utils.h @@ -44,11 +44,7 @@ #ifndef INCLUDED_UTILS_H #define INCLUDED_UTILS_H -#if (BOOST_VERSION >= 106600) #include <boost/uuid/detail/sha1.hpp> -#else -#include <boost/uuid/sha1.hpp> -#endif /** * @name Default values |