mirror of
https://github.com/nlohmann/json.git
synced 2025-07-18 06:02:16 +03:00
Capture exceptions by const& in docs. (#4099)
This commit is contained in:
@ -20,7 +20,7 @@ int main()
|
||||
{
|
||||
auto r3 = value.get_ref<json::number_float_t&>();
|
||||
}
|
||||
catch (json::type_error& ex)
|
||||
catch (const json::type_error& ex)
|
||||
{
|
||||
std::cout << ex.what() << '\n';
|
||||
}
|
||||
|
Reference in New Issue
Block a user