diff --git a/include/json.hpp b/include/json.hpp index 8b79f18..d749785 100644 --- a/include/json.hpp +++ b/include/json.hpp @@ -2864,8 +2864,8 @@ static constexpr string_t unescape_string(const string_t& str) #define _MEOJSON_ARG_TO_PAIR(x) { _MEOJSON_STRINGIZE(x), json::serialize(x) }, #define _MEOJSON_ARG_FROM_JSON(x) \ - if (auto x##opt = raw.find(#x)) \ - x = *std::move(x##opt); \ + if (auto _MEOJSON_CONCATENATE(x, _opt) = raw.find(#x)) \ + x = *std::move(_MEOJSON_CONCATENATE(x, _opt)); \ else \ return false;