🚨 fix warnings

This commit is contained in:
Niels Lohmann 2021-01-30 13:21:59 +01:00
parent b66ebcc950
commit 4ba60702f4
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
3 changed files with 5 additions and 5 deletions

View File

@ -170,7 +170,7 @@ Format](http://rfc7159.net/rfc7159)
@nosubgrouping
*/
NLOHMANN_BASIC_JSON_TPL_DECLARATION
class basic_json
class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
{
private:
template<detail::value_t> friend struct detail::external_constructor;
@ -1444,7 +1444,7 @@ class basic_json
typename U = detail::uncvref_t<CompatibleType>,
detail::enable_if_t <
!detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
basic_json(CompatibleType && val) noexcept(noexcept(
basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload)
JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
std::forward<CompatibleType>(val))))
{

View File

@ -16818,7 +16818,7 @@ Format](http://rfc7159.net/rfc7159)
@nosubgrouping
*/
NLOHMANN_BASIC_JSON_TPL_DECLARATION
class basic_json
class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
{
private:
template<detail::value_t> friend struct detail::external_constructor;
@ -18092,7 +18092,7 @@ class basic_json
typename U = detail::uncvref_t<CompatibleType>,
detail::enable_if_t <
!detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value, int > = 0 >
basic_json(CompatibleType && val) noexcept(noexcept(
basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overload)
JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
std::forward<CompatibleType>(val))))
{

View File

@ -158,7 +158,7 @@ TEST_CASE("README" * doctest::skip())
j.push_back(true);
// comparison
bool x = (j == R"(["foo", 1, true])"); // true
bool x = (j == R"(["foo", 1, true])"_json); // true
CHECK(x == true);
// iterate the array