Merge branch 'develop' of https://github.com/nlohmann/json into ci
This commit is contained in:
commit
3d1048ea78
@ -579,7 +579,7 @@ bool foo = j.at(2);
|
||||
j == R"(["foo", 1, true, 1.78])"_json; // true
|
||||
|
||||
// other stuff
|
||||
j.size(); // 3 entries
|
||||
j.size(); // 4 entries
|
||||
j.empty(); // false
|
||||
j.type(); // json::value_t::array
|
||||
j.clear(); // the array is empty again
|
||||
|
||||
@ -8,7 +8,7 @@ try
|
||||
{
|
||||
j = json::parse(my_input);
|
||||
}
|
||||
catch (json::exception::parse_error& ex)
|
||||
catch (json::parse_error& ex)
|
||||
{
|
||||
std::cerr << "parse error at byte " << ex.byte << std::endl;
|
||||
}
|
||||
|
||||
@ -50,7 +50,6 @@ class exception : public std::exception
|
||||
{
|
||||
public:
|
||||
/// returns the explanatory string
|
||||
JSON_HEDLEY_RETURNS_NON_NULL
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
return m.what();
|
||||
|
||||
@ -2637,7 +2637,6 @@ class exception : public std::exception
|
||||
{
|
||||
public:
|
||||
/// returns the explanatory string
|
||||
JSON_HEDLEY_RETURNS_NON_NULL
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
return m.what();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user