From f0ebed454a9ea122932a0addf5854a420d4d9c33 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 21 Oct 2023 19:54:49 +0800 Subject: [PATCH] fix: build error on linux and macOS --- include/json.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/json.hpp b/include/json.hpp index a1f2ee1..8f55ae2 100644 --- a/include/json.hpp +++ b/include/json.hpp @@ -2605,14 +2605,12 @@ namespace _serialization_helper void unable_to_serialize() { static_assert(!sizeof(T), "Unable to serialize T. " - "You can define the conversion of T to json, or overload operator<< for it. " - "See T below: " + "You can define the conversion of T to json, or overload operator<< for it."); #ifdef _MSC_VER - __FUNCSIG__ + static_assert(!sizeof(T), "See T below: "__FUNCSIG__); #else - __PRETTY_FUNCTION__ + // static_assert(!sizeof(T), "See T below: "__PRETTY_FUNCTION__); #endif - ); } } // namespace _serialization_helper