mirror of
https://github.com/nlohmann/json.git
synced 2026-03-27 19:32:46 +00:00
working on #160
This commit is contained in:
@@ -26,8 +26,8 @@ int main()
|
||||
{
|
||||
object.at("the fast") = "il rapido";
|
||||
}
|
||||
catch (std::out_of_range)
|
||||
catch (std::out_of_range& e)
|
||||
{
|
||||
std::cout << "out of range" << '\n';
|
||||
std::cout << "out of range: " << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<a target="_blank" href="http://melpon.org/wandbox/permlink/syN4hQrhPvlUy5AG"><b>online</b></a>
|
||||
<a target="_blank" href="http://melpon.org/wandbox/permlink/3ir8W1OZ5KtbRz6r"><b>online</b></a>
|
||||
@@ -1,3 +1,3 @@
|
||||
"il brutto"
|
||||
{"the bad":"il cattivo","the good":"il buono","the ugly":"il brutto"}
|
||||
out of range
|
||||
out of range: key 'the fast' not found
|
||||
|
||||
@@ -21,8 +21,8 @@ int main()
|
||||
{
|
||||
array.at(5) = "sixth";
|
||||
}
|
||||
catch (std::out_of_range)
|
||||
catch (std::out_of_range& e)
|
||||
{
|
||||
std::cout << "out of range" << '\n';
|
||||
std::cout << "out of range: " << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<a target="_blank" href="http://melpon.org/wandbox/permlink/wKBBW3ORmTHPlgJV"><b>online</b></a>
|
||||
<a target="_blank" href="http://melpon.org/wandbox/permlink/9Ae4DO4HJjULnq5j"><b>online</b></a>
|
||||
@@ -1,3 +1,3 @@
|
||||
"third"
|
||||
["first","second","third","fourth"]
|
||||
out of range
|
||||
out of range: array index 5 is out of range
|
||||
|
||||
Reference in New Issue
Block a user