Use #error in config.hpp

This commit is contained in:
Vinnie Falco
2017-08-09 16:29:06 -07:00
parent 17789ba02e
commit 8977237f8a
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Version 104:
* Remove unused include
* Use #error in config.hpp
--------------------------------------------------------------------------------

View File

@ -26,12 +26,12 @@
#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");
# error 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");
# error Beast requires C++11: gcc version 4.8 or later needed
# endif
#else
@ -40,7 +40,7 @@
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");
# error Beast requires C++11: a conforming compiler is needed
# endif
#endif