| 1 |
// __ _____ _____ _____ |
| 2 |
// __| | __| | | | JSON for Modern C++ (supporting code) |
| 3 |
// | | |__ | | | | | | version 3.12.0 |
| 4 |
// |_____|_____|_____|_|___| https://github.com/nlohmann/json |
| 5 |
// |
| 6 |
// SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann <https://nlohmann.me> |
| 7 |
// SPDX-License-Identifier: MIT |
| 8 |
|
| 9 |
#include <nlohmann/json.hpp> |
| 10 |
|
| 11 |
int main() |
| 12 |
{ |
| 13 |
nlohmann::ordered_json json = {"Test"}; |
| 14 |
json.dump(); |
| 15 |
|
| 16 |
// regression for #3013 (ordered_json::reset() compile error with nvcc) |
| 17 |
nlohmann::ordered_json metadata; |
| 18 |
metadata.erase("key"); |
| 19 |
} |