add regression test for #3013

This commit is contained in:
Niels Lohmann 2021-12-30 14:59:23 +01:00
parent 1aca6cb949
commit 7429164843
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -4,4 +4,8 @@ int main()
{
nlohmann::ordered_json json = {"Test"};
json.dump();
// regression for #3013 (ordered_json::reset() compile error with nvcc)
nlohmann::ordered_json metadata;
metadata.erase("key");
}