Don't build pre-C++11

This commit is contained in:
Vinnie Falco
2017-07-28 17:07:22 -07:00
parent ff95002fd9
commit f2da16c9f6
3 changed files with 23 additions and 7 deletions
+19 -5
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