⚗️ try std::initializer_list<json>

This commit is contained in:
Niels Lohmann 2022-01-05 21:29:34 +01:00
parent 6d67b59b44
commit 2d3091ff9f
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -856,7 +856,7 @@ TEST_CASE("regression tests 2")
try
{
// std::map<std::string, std::string> j // no leak
nlohmann::json::initializer_list_t j // leak
std::initializer_list<json> j // leak
{
{"smth", f_3215(true)}, // exception thrown here
{"smth", f_3215(false)}