lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a07f141: Fix configure cross-builds using C++


From: Vadim Zeitlin
Subject: [lmi-commits] [lmi] master a07f141: Fix configure cross-builds using C++20
Date: Sat, 24 Apr 2021 07:29:28 -0400 (EDT)

branch: master
commit a07f141abe81833854047802b84ca459c10846bc
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Fix configure cross-builds using C++20
    
    Define BOOST_NO_STD_ALLOCATOR in configure builds too, as it was already
    done back in 05bdf209b (Define BOOST_NO_STD_ALLOCATOR to build
    Boost.Regex in C++20, 2020-05-11) for the builds using official
    makefiles, and for the same reason.
---
 configure.ac | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index e263434..0c083ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -361,10 +361,9 @@ else
 if they are installed in non default location"
 fi
 
-dnl Disable the use of std::auto_ptr<> which is not available in C++17 (and is
-dnl actually not available, rather than still being there and just generating
-dnl deprecation warnings, in clang libc++).
-CPPFLAGS="$CPPFLAGS -DBOOST_NO_AUTO_PTR"
+dnl Disable the use of std::auto_ptr<> and std::allocator::const_reference,
+dnl that don't exist in C++ 20 and that we don't need anyhow, in Boost code.
+CPPFLAGS="$CPPFLAGS -DBOOST_NO_AUTO_PTR -DBOOST_NO_STD_ALLOCATOR"
 
 AC_CHECK_HEADER([boost/type_traits.hpp],
     [],



reply via email to

[Prev in Thread] Current Thread [Next in Thread]