Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:27

0001 // Copyright (c) 2009-2020 Vladimir Batov.
0002 // Use, modification and distribution are subject to the Boost Software License,
0003 // Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
0004 
0005 #ifndef BOOST_CONVERT_FORWARD_HPP
0006 #define BOOST_CONVERT_FORWARD_HPP
0007 
0008 #include <boost/config.hpp>
0009 #include <boost/version.hpp>
0010 #include <boost/optional.hpp>
0011 #include <type_traits>
0012 
0013 #if defined(BOOST_NO_CXX14)
0014 #undef BOOST_CONVERT_CXX14
0015 #else
0016 #define BOOST_CONVERT_CXX14
0017 #endif
0018 
0019 // Intel 12.0 and lower have broken SFINAE
0020 #if defined(BOOST_INTEL) && (BOOST_INTEL <= 1200)
0021 #undef BOOST_CONVERT_CXX14
0022 #endif
0023 
0024 // No C++11 support
0025 #if defined(__GNUC__) && (__GNUC__ < 6)
0026 #undef BOOST_CONVERT_CXX14
0027 #endif
0028 
0029 // MSVC-11 and lower have broken SFINAE
0030 #if defined(_MSVC_VER) && (_MSVC_VER < 1800)
0031 #undef BOOST_CONVERT_CXX14
0032 #endif
0033 
0034 #if defined(_MSC_VER)
0035 
0036 //MSVC++ 7.0  _MSC_VER == 1300
0037 //MSVC++ 7.1  _MSC_VER == 1310 (Visual Studio 2003)
0038 //MSVC++ 8.0  _MSC_VER == 1400 (Visual Studio 2005)
0039 //MSVC++ 9.0  _MSC_VER == 1500 (Visual Studio 2008)
0040 //MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
0041 //MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
0042 //MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
0043 //MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
0044 //MSVC++ 15.0 _MSC_VER == 1910 (Visual Studio 2017)
0045 
0046 #   pragma warning(disable: 4100) // unreferenced formal parameter
0047 #   pragma warning(disable: 4146) // unary minus operator applied to unsigned type
0048 #   pragma warning(disable: 4180) // qualifier applied to function type has no meaning
0049 #   pragma warning(disable: 4224)
0050 #   pragma warning(disable: 4244)
0051 #   pragma warning(disable: 4800) // forcing value to bool
0052 #   pragma warning(disable: 4996)
0053 
0054 #if _MSC_VER < 1900 /* MSVC-14 defines real snprintf()... just about time! */
0055 #   define snprintf _snprintf
0056 #endif
0057 
0058 #endif
0059 
0060 #endif // BOOST_CONVERT_FORWARD_HPP