1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

Fix compilation error with NVCC (#3234)

This commit is contained in:
Niels Lohmann
2022-01-02 09:03:56 +01:00
committed by GitHub
parent 926df56ddb
commit b69713c394
3 changed files with 12 additions and 8 deletions

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");
}