mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
BSON: Hopefully fixing ambiguity (on some compilers) to call to string::find()
This commit is contained in:
@ -8840,7 +8840,7 @@ class binary_writer
|
||||
*/
|
||||
static std::size_t calc_bson_entry_header_size(const typename BasicJsonType::string_t& name)
|
||||
{
|
||||
if (name.find(static_cast<CharType>(0)) != BasicJsonType::string_t::npos)
|
||||
if (name.find(static_cast<typename BasicJsonType::string_t::value_type>(0)) != BasicJsonType::string_t::npos)
|
||||
{
|
||||
JSON_THROW(out_of_range::create(409, "BSON key cannot contain code point U+0000"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user