mirror of
https://github.com/nlohmann/json.git
synced 2026-02-25 21:06:26 +00:00
🚨 fixed warnings
This commit is contained in:
@@ -124,8 +124,10 @@ struct nocopy
|
||||
|
||||
struct Data
|
||||
{
|
||||
std::string a;
|
||||
std::string b;
|
||||
Data() = default;
|
||||
Data(const std::string& a_, const std::string b_) : a(a_), b(b_) {}
|
||||
std::string a {};
|
||||
std::string b {};
|
||||
};
|
||||
|
||||
void from_json(const json& j, Data& data)
|
||||
@@ -1701,7 +1703,7 @@ TEST_CASE("regression tests")
|
||||
|
||||
std::map<std::string, Data> expected
|
||||
{
|
||||
{"1", {"testa_1", "testb_1" }},
|
||||
{"1", {"testa_1", "testb_1"}},
|
||||
{"2", {"testa_2", "testb_2"}},
|
||||
{"3", {"testa_3", "testb_3"}},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user