/** * @file include/ActivMiddleware/Config/Boost.h * * @brief Boost configuration header. */ #if (!defined ACTIV_MIDDLEWARE_BOOST_H) #define ACTIV_MIDDLEWARE_BOOST_H // ACTIV's boost top-level include directory. #define ACTIV_BOOST_INCLUDE_DIR() ActivBoost //! Use ACTIV_BOOST_INCLUDE to include a boost header. #define ACTIV_BOOST_INCLUDE(a) ACTIV_STRINGIZE(ACTIV_BOOST_INCLUDE_DIR()/a) #include ACTIV_BOOST_INCLUDE(version.hpp) #include ACTIV_BOOST_INCLUDE(config.hpp) #if (ACTIV_BOOST_VERSION_VALUE < ACTIV_MAKE_VERSION_VALUE(1, 78, 0, 0)) #error Boost version not supported #endif #define ACTIV_BOOST_NAMESPACE Boost // --------------------------------------------------------------------------------------------------------------------------------- // Bind placeholders. Boost now put them in Boost::placeholders, but (for now) make available in Boost as that's what we used to do. #include ACTIV_BOOST_INCLUDE(bind/placeholders.hpp) namespace ACTIV_BOOST_NAMESPACE { using namespace placeholders; } // namespace ACTIV_BOOST_NAMESPACE // --------------------------------------------------------------------------------------------------------------------------------- // NB: this include must be after the boost config.hpp include above. // Tripped over C4503 warnings in vc140 when memory was included before config.hpp. #include //! Activ namespace. namespace Activ { /** * @brief Boost ptr_container only supports std::auto_ptr and std::unique_ptr (i.e. not emulated unique_ptr). * Since C++17 has no std::auto_ptr, we need a helper type that will work across standard versions. */ template class BoostPtrContainerSmartPtr { public: #if (defined ACTIV_BOOST_NO_CXX11_SMART_PTR) typedef std::auto_ptr type; #else typedef std::unique_ptr type; #endif }; } // namespace Activ #endif // (!defined ACTIV_MIDDLEWARE_BOOST_H)