mirror of
https://github.com/nlohmann/json.git
synced 2026-11-16 12:28:02 +00:00
Capture exceptions by const& in docs. (#4099)
This commit is contained in:
1 parent
1ce29fa22f
commit
aa87ab8b40
31 files changed
+49
-49
No files matched your search
@@ -35,7 +35,7 @@ int main()
|
||||
{
|
||||
std::cout << j_invalid.dump() << std::endl;
|
||||
}
|
||||
catch (json::type_error& e)
|
||||
catch (const json::type_error& e)
|
||||
{
|
||||
std::cout << e.what() << std::endl;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user