]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/convert/detail/config.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / convert / detail / config.hpp
CommitLineData
20effc67 1// Copyright (c) 2009-2020 Vladimir Batov.
7c673cae
FG
2// Use, modification and distribution are subject to the Boost Software License,
3// Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
4
5#ifndef BOOST_CONVERT_FORWARD_HPP
6#define BOOST_CONVERT_FORWARD_HPP
7
7c673cae
FG
8#include <boost/config.hpp>
9#include <boost/version.hpp>
10#include <boost/optional.hpp>
20effc67 11#include <type_traits>
7c673cae
FG
12
13#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
14#undef BOOST_CONVERT_CXX11
15#else
16#define BOOST_CONVERT_CXX11
17#endif
18
b32b8144
FG
19// Intel 12.0 and lower have broken SFINAE
20#if defined(BOOST_INTEL) && (BOOST_INTEL <= 1200)
21# define BOOST_CONVERT_IS_NOT_SUPPORTED
22#endif
23
24// No C++11 support
25#if defined(BOOST_GCC_VERSION) && (BOOST_GCC_VERSION <= 40600)
26# define BOOST_CONVERT_IS_NOT_SUPPORTED
27#endif
28
29// MSVC-11 and lower have broken SFINAE
30#if defined(BOOST_MSVC) && (BOOST_MSVC < 1800)
31# define BOOST_CONVERT_IS_NOT_SUPPORTED
32#endif
33
34#if defined(_MSC_VER)
35
36//MSVC++ 7.0 _MSC_VER == 1300
37//MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio 2003)
38//MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005)
39//MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008)
40//MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
41//MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
42//MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
43//MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
44//MSVC++ 15.0 _MSC_VER == 1910 (Visual Studio 2017)
45
b32b8144
FG
46# pragma warning(disable: 4100) // unreferenced formal parameter
47# pragma warning(disable: 4146) // unary minus operator applied to unsigned type
20effc67
TL
48# pragma warning(disable: 4180) // qualifier applied to function type has no meaning
49# pragma warning(disable: 4224)
50# pragma warning(disable: 4244)
51# pragma warning(disable: 4800) // forcing value to bool
52# pragma warning(disable: 4996)
b32b8144
FG
53
54#if _MSC_VER < 1900 /* MSVC-14 defines real snprintf()... just about time! */
55# define snprintf _snprintf
7c673cae
FG
56#endif
57
7c673cae
FG
58#endif
59
60#endif // BOOST_CONVERT_FORWARD_HPP