diff --git a/tests/src/unit-locale-cpp.cpp b/tests/src/unit-locale-cpp.cpp index 052151f7f..1c556e9a0 100644 --- a/tests/src/unit-locale-cpp.cpp +++ b/tests/src/unit-locale-cpp.cpp @@ -72,6 +72,10 @@ struct ParserImpl final: public nlohmann::json_sax ~ParserImpl() override; + ParserImpl() + : float_string_copy("not set") + {} + ParserImpl(const ParserImpl& other) : float_string_copy(other.float_string_copy) {} @@ -97,7 +101,7 @@ struct ParserImpl final: public nlohmann::json_sax return *this; } - json::string_t float_string_copy = "not set"; + json::string_t float_string_copy; }; ParserImpl::~ParserImpl() = default;