Define BOOST_NO_CONFIG
, which according to Boost is what we should be doing:
// define this to disable all config options, // excluding the user config. Use if your // setup is fully ISO compliant, and has no // useful extensions, or for autoconf generated // setups: // #define BOOST_NO_CONFIG
Defining BOOST_NO_CONFIG
, means we need some additional defines to tell Boost to avoid trying to use code that has been removed in C++17. Namely std::auto_ptr
(BOOST_NO_AUTO_PTR
) and std::bind1st
(BOOST_NO_CXX98_BINDERS
).
Partially split out of #24742, as this should be ok to do independently. With this change, we’ll be able to prune another ~80 Boost headers from our depends bundle.