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

cleanup after #184

This commit is contained in:
Niels
2016-01-20 21:14:58 +01:00
parent 663ad13fc3
commit a04bd4f851
7 changed files with 103 additions and 58 deletions

View File

@ -13,13 +13,13 @@ int main()
// print the values
std::cout << r1 << ' ' << r2 << '\n';
// incompatible type throws exception
try
{
auto r3 = value.get_ref<json::number_float_t&>();
}
catch(std::domain_error& ex)
catch (std::domain_error& ex)
{
std::cout << ex.what() << '\n';
}