Skip to content

Commit aad5b96

Browse files
committed
Fix VS2015 still using C++03 API
1 parent dea3190 commit aad5b96

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

include/msgpack/cpp_config.hpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232

3333

3434

35-
#if defined __cplusplus
36-
#if __cplusplus < 201103L
35+
#if defined(MSGPACK_USE_CPP03)
3736

3837
#if !defined(nullptr)
3938
# if _MSC_VER < 1600
@@ -101,7 +100,7 @@ struct is_same<T, T> : true_type {};
101100
} // namespace msgpack
102101

103102

104-
#else // __cplusplus < 201103L
103+
#else // MSGPACK_USE_CPP03
105104

106105
#include <memory>
107106
#include <tuple>
@@ -128,8 +127,6 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
128127
} // namespace msgpack
129128

130129

131-
#endif // __cplusplus < 201103L
132-
133-
#endif // __cplusplus
130+
#endif // MSGPACK_USE_CPP03
134131

135132
#endif /* msgpack/cpp_config.hpp */

0 commit comments

Comments
 (0)