Lines Matching +full:unused +full:- +full:value
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
7 // SPDX-License-Identifier: MIT
11 // disable -Wnoexcept due to struct pod_bis
13 DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept")
28 void to_json(json& /*unused*/, pod /*unused*/) noexcept;
29 void to_json(json& /*unused*/, pod_bis /*unused*/);
30 void from_json(const json& /*unused*/, pod /*unused*/) noexcept;
31 void from_json(const json& /*unused*/, pod_bis /*unused*/);
32 void to_json(json& /*unused*/, pod /*unused*/) noexcept {} in to_json()
33 void to_json(json& /*unused*/, pod_bis /*unused*/) {} in to_json()
34 void from_json(const json& /*unused*/, pod /*unused*/) noexcept {} in from_json()
35 void from_json(const json& /*unused*/, pod_bis /*unused*/) {} in from_json()
49 static_assert(noexcept(j->get<pod>()), "");
50 static_assert(!noexcept(j->get<pod_bis>()), "");
56 SECTION("nothrow-copy-constructible exceptions")
58 // for ERR60-CPP (https://github.com/nlohmann/json/issues/531):
59 // Exceptions should be nothrow-copy-constructible. However, compilers
61 // we can only demand nothrow-copy-constructibility for our exceptions
63 …row_copy_constructible<json::exception>::value == std::is_nothrow_copy_constructible<std::runtime_…
64 …w_copy_constructible<json::parse_error>::value == std::is_nothrow_copy_constructible<std::runtime_…
65 …y_constructible<json::invalid_iterator>::value == std::is_nothrow_copy_constructible<std::runtime_…
66 …ow_copy_constructible<json::type_error>::value == std::is_nothrow_copy_constructible<std::runtime_…
67 …_copy_constructible<json::out_of_range>::value == std::is_nothrow_copy_constructible<std::runtime_…
68 …w_copy_constructible<json::other_error>::value == std::is_nothrow_copy_constructible<std::runtime_…
71 SECTION("silence -Wunneeded-internal-declaration errors")