Capture exceptions by const& in docs. (#4099)

This commit is contained in:
Ivor Wanders authored and GitHub committed 2023-09-23 17:19:50 +02:00
1 parent 1ce29fa22f
commit aa87ab8b40
31 files changed
+49 -49

No files matched your search

+1 -1
View File
@@ -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';
}