From f7deca361c084e3837bebe7641dd0dd6bc49bb3e Mon Sep 17 00:00:00 2001 From: Diego Mateos Date: Thu, 29 Feb 2024 17:12:33 +0100 Subject: [PATCH] More robust __cplusplus check Similar to the same check done a few lines above for c++17 --- include/cereal/macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cereal/macros.hpp b/include/cereal/macros.hpp index 85cf9b58..e97d67d7 100644 --- a/include/cereal/macros.hpp +++ b/include/cereal/macros.hpp @@ -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