From ef78e4d1364434d1c8eacaa40754b01f64c18456 Mon Sep 17 00:00:00 2001 From: Bernard Date: Thu, 20 Feb 2020 22:38:34 +1100 Subject: [PATCH] Fix json.hpp compilation issue when int32_t is a long When testing whether or not to define a saveValue() overload for long, test the actual set of types implemented. --- include/cereal/archives/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cereal/archives/json.hpp b/include/cereal/archives/json.hpp index 82312e32d..80f11aa50 100644 --- a/include/cereal/archives/json.hpp +++ b/include/cereal/archives/json.hpp @@ -292,13 +292,13 @@ namespace cereal #else // _MSC_VER //! Serialize a long if it would not be caught otherwise template ::value, - !std::is_same::value, + !std::is_same::value, !std::is_same::value> = traits::sfinae> inline void saveValue( T t ){ saveLong( t ); } //! Serialize an unsigned long if it would not be caught otherwise template ::value, - !std::is_same::value, + !std::is_same::value, !std::is_same::value> = traits::sfinae> inline void saveValue( T t ){ saveLong( t ); } #endif // _MSC_VER