cleanup after #184
This commit is contained in:
parent
663ad13fc3
commit
a04bd4f851
7 changed files with 103 additions and 58 deletions
|
@ -13,13 +13,13 @@ int main()
|
|||
|
||||
// print the values
|
||||
std::cout << r1 << ' ' << r2 << '\n';
|
||||
|
||||
|
||||
// incompatible type throws exception
|
||||
try
|
||||
{
|
||||
auto r3 = value.get_ref<json::number_float_t&>();
|
||||
}
|
||||
catch(std::domain_error& ex)
|
||||
catch (std::domain_error& ex)
|
||||
{
|
||||
std::cout << ex.what() << '\n';
|
||||
}
|
||||
|
|
1
doc/examples/get_ref.link
Normal file
1
doc/examples/get_ref.link
Normal file
|
@ -0,0 +1 @@
|
|||
<a target="_blank" href="http://melpon.org/wandbox/permlink/nBNBANVonG9HCQqQ"><b>online</b></a>
|
2
doc/examples/get_ref.output
Normal file
2
doc/examples/get_ref.output
Normal file
|
@ -0,0 +1,2 @@
|
|||
17 17
|
||||
incompatible ReferenceType for get_ref, actual type is number
|
Loading…
Add table
Add a link
Reference in a new issue