id summary reporter owner description type status milestone component version severity resolution keywords cc 11408 Need C++ standard option for ./b2 and Jamfile Niall Douglas Vladimir Prus "A problem shortly forthcoming will be Boost libraries that can only build on some revisions of the C++ standard, but not others. In such a situation, let us imagine that a Boost.Hana which can only compile currently on some versions of clang ought not to be attempted on C++ 98 compilers as it makes no sense to do so. I would suggest a two part solution. The first is that ./b2 gets a std=98|03|11|14|1z parameter which adds -std=c++ on gcc and clang, and second that Jamfile gains an extra requirements option e.g. {{{ project boost/afio : requirements multi __cplusplus > 201103L # <-- This is new shared:BOOST_AFIO_DYN_LINK=1 shared:BOOST_AFIO_SOURCE=1 static:BOOST_AFIO_SOURCE=1 ../../../boost/afio gcc:""-fvisibility-inlines-hidden -fstrict-aliasing -Wstrict-aliasing -Wno-unused -fargument-noalias -fvisibility=hidden -fasynchronous-unwind-tables"" ... }}} If a appears, the compiler is executed with the code {{{ #include ""boost/config.hpp"" #if #else #error Not supported #endif }}} And if the compiler compiles that without error, the library is enabled for this build. One can also, of course, check Boost.Config macros for compiler features. For even more flexible build enable detection, I'd also have a: {{{ custom_header.hpp }}} This tries to compile custom_header.hpp, and if that succeeds the build is enabled. Niall" Feature Requests closed To Be Determined build Boost 1.60.0 Problem obsolete