mirror of
https://github.com/nlohmann/json.git
synced 2026-03-06 01:06:26 +00:00
📝 overworked documentation
Replacing references to std exceptions with user-defined exceptions. Also changed some examples to the new exceptions.
This commit is contained in:
@@ -19,7 +19,7 @@ int main()
|
||||
{
|
||||
auto r3 = value.get_ref<json::number_float_t&>();
|
||||
}
|
||||
catch (std::domain_error& ex)
|
||||
catch (json::type_error& ex)
|
||||
{
|
||||
std::cout << ex.what() << '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user