From e962a134f01e01e6b1b64778698a8a456b443720 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 15 Jan 2024 20:10:45 +0200 Subject: [PATCH] Do not include boost/bind/apply.hpp under C++03 --- test/optional_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/optional_test.cpp b/test/optional_test.cpp index 81375b8..bd8f90f 100644 --- a/test/optional_test.cpp +++ b/test/optional_test.cpp @@ -20,7 +20,10 @@ #define BOOST_ENABLE_ASSERT_HANDLER +#include "boost/config.hpp" +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #include "boost/bind/apply.hpp" // Included just to test proper interaction with boost::apply<> as reported by Daniel Wallin +#endif #include "boost/mpl/bool.hpp" #include "boost/mpl/bool_fwd.hpp" // For mpl::true_ and mpl::false_