DxLibEx
visualc.hpp
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2015-2017 DxLibEx project
3  https://github.com/Nagarei/DxLibEx/
4 
5  Distributed under the Boost Software License, Version 1.0.
6  (See http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef DXLE_INC_CONFIG_COMPILER_VISUALC_HPP_
9 #define DXLE_INC_CONFIG_COMPILER_VISUALC_HPP_
10 
11 /*
12 C++11
13 */
14 #if _MSC_FULL_VER < 190023506//Visual Studio 2015 Update 1
15 //Visual Studio 2013 November CTP and Visual Stduio 2015 has too many bugs for constexpr. We will never support these.
16 # define DXLE_NO_CXX11_CONSTEXPR
17 #endif
18 
19 #if _MSC_FULL_VER < 190023026//Visual Studio 2015
20 # define DXLE_NO_CXX11_NOEXCEPT_EXPRESSION
21 # define DXLE_NO_CXX11_USER_DEFINED_LITERALS
22 # define DXLE_NO_CXX11_UNICODE_LITERALS
23 # define DXLE_NO_CXX11_ATTRIBUTES
24 #endif
25 #if (_MSC_VER < 1900) && (_MSC_FULL_VER != 180021114)//Visual Studio 2013 Nobemver CTP or Visual Studio2015 or later
26 # define DXLE_NO_CXX11_NOEXCEPT
27 # define DXLE_NO_CXX11_REF_QUALIFIERS
28 #endif
29 
30 /*
31 C++14
32 */
33 #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
34 # define DXLE_NO_CXX14_CONSTEXPR
35 #endif
36 
37 #if _MSC_FULL_VER < 190023824//Visual Studio 2015 Update2 RC
38 # define DXLE_NO_CXX14_VARIABLE_TEMPLATES
39 #endif
40 
41 #if _MSC_FULL_VER < 190023026//Visual Studio 2015
42 # define DXLE_NO_CXX14_ATTRIBUTE_DEPRECATED
43 # define DXLE_NO_CXX14_UDLS_FOR_STRING_AND_CHRONO
44 #endif
45 
46 /*
47 C++17
48 */
49 #if _MSC_FULL_VER <= 191024629 || 201402 == _MSVC_LANG
50 #define DXLE_NO_CXX17_UNUSED
51 #endif
52 
53 #endif // #ifndef DXLE_INC_CONFIG_COMPILER_VISUALC_HPP_