From 8977237f8ad5015a8cd6c0fdea9214a84bb73cb0 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 9 Aug 2017 16:29:06 -0700 Subject: [PATCH] Use #error in config.hpp --- CHANGELOG.md | 1 + include/boost/beast/config.hpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 884b670b..d3454f6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 104: * Remove unused include +* Use #error in config.hpp -------------------------------------------------------------------------------- diff --git a/include/boost/beast/config.hpp b/include/boost/beast/config.hpp index 07abf2f9..b6d86acb 100644 --- a/include/boost/beast/config.hpp +++ b/include/boost/beast/config.hpp @@ -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