2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
11 #define BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
13 #include <boost/config.hpp>
14 #include <boost/version.hpp>
16 // Available to every header
17 #include <boost/config.hpp>
18 #include <boost/core/ignore_unused.hpp>
19 #include <boost/static_assert.hpp>
22 _MSC_VER and _MSC_FULL_VER by version:
24 14.0 (2015) 1900 190023026
25 14.0 (2015 Update 1) 1900 190023506
26 14.0 (2015 Update 2) 1900 190023918
27 14.0 (2015 Update 3) 1900 190024210
30 #if defined(BOOST_MSVC)
31 # if BOOST_MSVC_FULL_VER < 190024210
32 # error Beast requires C++11: Visual Studio 2015 Update 3 or later needed
35 #elif defined(BOOST_GCC)
36 # if(BOOST_GCC < 40801)
37 # error Beast requires C++11: gcc version 4.8 or later needed
42 defined(BOOST_NO_CXX11_DECLTYPE) || \
43 defined(BOOST_NO_CXX11_HDR_TUPLE) || \
44 defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
45 defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
46 # error Beast requires C++11: a conforming compiler is needed
51 #if BOOST_VERSION >= 106500 || ! defined(BOOST_GCC) || BOOST_GCC < 70000
52 # define BOOST_BEAST_FALLTHROUGH BOOST_FALLTHROUGH
54 # define BOOST_BEAST_FALLTHROUGH __attribute__((fallthrough))