Lines Matching refs:noexcept
28 void to_json(json& /*unused*/, pod /*unused*/) noexcept;
30 void from_json(const json& /*unused*/, pod /*unused*/) noexcept;
32 void to_json(json& /*unused*/, pod /*unused*/) noexcept {}
34 void from_json(const json& /*unused*/, pod /*unused*/) noexcept {}
39 static_assert(noexcept(json{}), "");
40 static_assert(noexcept(nlohmann::to_json(*j, 2)), "");
41 static_assert(noexcept(nlohmann::to_json(*j, 2.5)), "");
42 static_assert(noexcept(nlohmann::to_json(*j, true)), "");
43 static_assert(noexcept(nlohmann::to_json(*j, test{})), "");
44 static_assert(noexcept(nlohmann::to_json(*j, pod{})), "");
45 static_assert(!noexcept(nlohmann::to_json(*j, pod_bis{})), "");
46 static_assert(noexcept(json(2)), "");
47 static_assert(noexcept(json(test{})), "");
48 static_assert(noexcept(json(pod{})), "");
49 static_assert(noexcept(j->get<pod>()), "");
50 static_assert(!noexcept(j->get<pod_bis>()), "");
51 static_assert(noexcept(json(pod{})), "");