Skip to content

Commit

Permalink
fix: build error on linux and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 21, 2023
1 parent 55b93d3 commit f0ebed4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f0ebed4

Please sign in to comment.