Skip to content

Commit f7deca3

Browse files
dimateosAzothAmmo
authored andcommitted
More robust __cplusplus check
Similar to the same check done a few lines above for c++17
1 parent cb6c6ac commit f7deca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cereal/macros.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
#endif
142142

143143
//! Checks if C++14 is available
144-
#if __cplusplus >= 201402L
144+
#if (__cplusplus >= 201402L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L))
145145
#define CEREAL_HAS_CPP14
146146
#endif
147147

0 commit comments

Comments
 (0)