mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +02:00
Don't build pre-C++11
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
Version 91:
|
Version 91:
|
||||||
|
|
||||||
* Adjust redirect html
|
* Adjust redirect html
|
||||||
|
* Don't build pre-C++11
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
5
Jamfile
5
Jamfile
@@ -13,7 +13,7 @@ import boost ;
|
|||||||
import modules ;
|
import modules ;
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
#import ../config/checks/config : requires ;
|
import ../config/checks/config : requires ;
|
||||||
|
|
||||||
boost.use-project ;
|
boost.use-project ;
|
||||||
|
|
||||||
@@ -66,7 +66,8 @@ variant ubasan
|
|||||||
<linkflags>"-fsanitize=address,undefined"
|
<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
|
project beast
|
||||||
: requirements
|
: requirements
|
||||||
|
@@ -25,11 +25,25 @@
|
|||||||
14.0 (2015 Update 3) 1900 190024210
|
14.0 (2015 Update 3) 1900 190024210
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef BOOST_MSVC
|
#if defined(BOOST_MSVC)
|
||||||
# if BOOST_MSVC_FULL_VER < 190024210
|
# if BOOST_MSVC_FULL_VER < 190024210
|
||||||
static_assert(false,
|
static_assert(false, "Beast requires C++11: Visual Studio 2015 Update 3 or later needed");
|
||||||
"This library requires Visual Studio 2015 Update 3 or later");
|
|
||||||
# endif
|
# 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
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user