Merge pull request #4040 from OmnipotentEntity/master

Fix compatibility with nlohmann-json 3.9.1
This commit is contained in:
Eelco Dolstra 2020-09-22 11:09:25 +02:00 committed by GitHub
commit e7f1109f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,14 @@ public:
{
return handle_value<void(Value&, const char*)>(mkString, val.c_str());
}
#if NLOHMANN_JSON_VERSION_MAJOR >= 3 && NLOHMANN_JSON_VERSION_MINOR >= 8
bool binary(binary_t&)
{
// This function ought to be unreachable
assert(false);
return true;
}
#endif
bool start_object(std::size_t len)
{