File tree 4 files changed +6
-5
lines changed 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ namespace tao::json
156
156
return v;
157
157
}
158
158
159
- basic_value& operator =( basic_value v ) noexcept ( std::is_nothrow_move_assignable_v< variant_t >&& std::is_nothrow_move_assignable_v< public_base_t > )
159
+ basic_value& operator =( basic_value v ) noexcept ( std::is_nothrow_move_assignable_v< variant_t > && std::is_nothrow_move_assignable_v< public_base_t > )
160
160
{
161
161
m_variant = std::move ( v.m_variant );
162
162
public_base_t ::operator =( static_cast < public_base_t && >( v ) );
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ namespace tao::json::msgpack::events
159
159
void element () noexcept
160
160
{}
161
161
162
- void end_array () // NOLINT(readability-convert-member-functions-to-static)
162
+ void end_array () // NOLINT(readability-convert-member-functions-to-static)
163
163
{
164
164
assert ( false ); // LCOV_EXCL_LINE
165
165
}
@@ -196,7 +196,7 @@ namespace tao::json::msgpack::events
196
196
void member () noexcept
197
197
{}
198
198
199
- void end_object () // NOLINT(readability-convert-member-functions-to-static)
199
+ void end_object () // NOLINT(readability-convert-member-functions-to-static)
200
200
{
201
201
assert ( false ); // LCOV_EXCL_LINE
202
202
}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ namespace tao::json
116
116
TEST_ASSERT ( custom_from_string ( " \" f\177 o\" " ) == value ( " f\177 o" ) );
117
117
118
118
// TODO: This is sometimes allowed to allow embedded null-bytes within a null-terminated string. (Modified UTF-8)
119
- TEST_THROWS ( custom_from_string ( " \" f\300\200 o\" " ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding.
119
+ TEST_THROWS ( custom_from_string ( " \" f\300\200 o\" " ) ); // Codepoint 0x00 as 2 byte UTF-8 - overlong encoding.
120
120
121
121
TEST_THROWS ( custom_from_string ( " \" f\300\201 o\" " ) ); // Codepoint 0x01 as 2 byte UTF-8 - overlong encoding.
122
122
TEST_THROWS ( custom_from_string ( " \" f\340\200\201 o\" " ) ); // Codepoint 0x01 as 3 byte UTF-8 - overlong encoding.
Original file line number Diff line number Diff line change @@ -234,7 +234,8 @@ namespace tao::json::test
234
234
}
235
235
{
236
236
// TODO: More numbers...
237
- } {
237
+ }
238
+ {
238
239
c.string ( " " );
239
240
c.element ();
240
241
}
You can’t perform that action at this time.
0 commit comments