Don't build pre-C++11

This commit is contained in:
Vinnie Falco
2017-07-27 06:39:07 -07:00
parent ff95002fd9
commit f2da16c9f6
3 changed files with 23 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
Version 91:
* Adjust redirect html
* Don't build pre-C++11
--------------------------------------------------------------------------------

View File

@@ -13,7 +13,7 @@ import boost ;
import modules ;
import testing ;
#import ../config/checks/config : requires ;
import ../config/checks/config : requires ;
boost.use-project ;
@@ -66,7 +66,8 @@ variant ubasan
<linkflags>"-fsanitize=address,undefined"
;
#local REQ = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_hdr_type_traits cxx11_hdr_tuple ] ;
#cxx11_hdr_type_traits
local REQ = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_hdr_tuple ] ;
project beast
: requirements

View File

@@ -25,11 +25,25 @@
14.0 (2015 Update 3) 1900 190024210
*/
#ifdef BOOST_MSVC
#if BOOST_MSVC_FULL_VER < 190024210
static_assert(false,
"This library requires Visual Studio 2015 Update 3 or later");
#endif
#if defined(BOOST_MSVC)
# if BOOST_MSVC_FULL_VER < 190024210
static_assert(false, "Beast requires C++11: Visual Studio 2015 Update 3 or later needed");
# endif
#elif defined(BOOST_GCC)
# if(BOOST_GCC < 40801)
static_assert(false, "Beast requires C++11: gcc version 4.8 or later needed");
# endif
#else
# if \
defined(BOOST_NO_CXX11_DECLTYPE) || \
defined(BOOST_NO_CXX11_HDR_TUPLE) || \
defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
static_assert(false, "Beast requires C++11: a conforming compiler is needed");
# endif
#endif
#endif