json/test/cuda_example/json_cuda.cu
2022-01-02 09:03:56 +01:00

12 lines
247 B
Plaintext

#include <nlohmann/json.hpp>
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");
}