Skip to content

Commit

Permalink
More robust __cplusplus check
Browse files Browse the repository at this point in the history
Similar to the same check done a few lines above for c++17
  • Loading branch information
dimateos authored and AzothAmmo committed Dec 24, 2024
1 parent cb6c6ac commit f7deca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cereal/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
#endif

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

Expand Down

0 comments on commit f7deca3

Please sign in to comment.