mirror of
https://github.com/nlohmann/json.git
synced 2026-10-11 00:47:12 +00:00
BSON: Hopefully fixing ambiguity (on some compilers) to call to string::find()
This commit is contained in:
1 parent
2a63869159
commit
8de10c518b
2 files changed
+2
-2
No files matched your search
@@ -683,7 +683,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