mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 04:28:12 +00:00
Adjust more files after actually building like the CI
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
1 parent
832cee5b77
commit
e7a69b8d31
6 files changed
+154
No files matched your search
@@ -56,6 +56,15 @@ class binary_writer
|
||||
break;
|
||||
}
|
||||
|
||||
case value_t::null:
|
||||
case value_t::array:
|
||||
case value_t::string:
|
||||
case value_t::boolean:
|
||||
case value_t::number_integer:
|
||||
case value_t::number_unsigned:
|
||||
case value_t::number_float:
|
||||
case value_t::binary:
|
||||
case value_t::discarded:
|
||||
default:
|
||||
{
|
||||
JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()), j));;
|
||||
@@ -363,6 +372,7 @@ class binary_writer
|
||||
break;
|
||||
}
|
||||
|
||||
case value_t::discarded:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -684,6 +694,7 @@ class binary_writer
|
||||
break;
|
||||
}
|
||||
|
||||
case value_t::discarded:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -888,6 +899,7 @@ class binary_writer
|
||||
break;
|
||||
}
|
||||
|
||||
case value_t::discarded:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1140,6 +1152,7 @@ class binary_writer
|
||||
return header_size + 0ul;
|
||||
|
||||
// LCOV_EXCL_START
|
||||
case value_t::discarded:
|
||||
default:
|
||||
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
|
||||
return 0ul;
|
||||
@@ -1186,6 +1199,7 @@ class binary_writer
|
||||
return write_bson_null(name);
|
||||
|
||||
// LCOV_EXCL_START
|
||||
case value_t::discarded:
|
||||
default:
|
||||
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
|
||||
return;
|
||||
@@ -1476,6 +1490,7 @@ class binary_writer
|
||||
case value_t::object:
|
||||
return '{';
|
||||
|
||||
case value_t::discarded:
|
||||
default: // discarded values
|
||||
return 'N';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user