From 7429164843ac5167afd7ec2f8c2e1a42a12f93cc Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 30 Dec 2021 14:59:23 +0100 Subject: [PATCH] :white_check_mark: add regression test for #3013 --- test/cuda_example/json_cuda.cu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cuda_example/json_cuda.cu b/test/cuda_example/json_cuda.cu index 1d4057680..d686cd0f8 100644 --- a/test/cuda_example/json_cuda.cu +++ b/test/cuda_example/json_cuda.cu @@ -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"); }