mirror of
https://github.com/nlohmann/json.git
synced 2025-07-16 18:41:53 +03:00
Capture exceptions by const& in docs. (#4099)
This commit is contained in:
@ -21,7 +21,7 @@ int main()
|
||||
}])"_json;
|
||||
value.patch(patch);
|
||||
}
|
||||
catch (json::other_error& e)
|
||||
catch (const json::other_error& e)
|
||||
{
|
||||
// output exception information
|
||||
std::cout << "message: " << e.what() << '\n'
|
||||
|
Reference in New Issue
Block a user