mirror of
https://github.com/nlohmann/json.git
synced 2026-11-02 10:55:35 +00:00
⚗️ try minimal example
This commit is contained in:
1 file changed
+2
-3
@@ -77,7 +77,6 @@ struct position_t
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class exception : public std::exception
|
class exception : public std::exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -86,7 +85,7 @@ class exception : public std::exception
|
|||||||
return m.what();
|
return m.what();
|
||||||
}
|
}
|
||||||
|
|
||||||
const int id;
|
const int id; // NOLINT(cppcoreguidelines-non-private-member-variables-in-classes)
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
exception(int id_, const char* what_arg) : id(id_), m(what_arg) {}
|
exception(int id_, const char* what_arg) : id(id_), m(what_arg) {}
|
||||||
@@ -123,7 +122,7 @@ class parse_error : public exception
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail2
|
||||||
} // namespace nlohmann
|
} // namespace nlohmann
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user