Merge branch 'develop' into claude/fix-issue-2649-738aba
Conflicts: - tests/src/unit-alt-string.cpp: kept both new sections (this PR's "conversion between basic_json specializations (#2649)" and develop's "strict enum" regression test for #5667) Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
89 files changed
+5613
-641
No files matched your search
@@ -287,7 +287,7 @@ struct external_constructor<value_t::object>
|
||||
#ifdef JSON_HAS_CPP_17
|
||||
template<typename BasicJsonType, typename T,
|
||||
enable_if_t<std::is_constructible<BasicJsonType, T>::value, int> = 0>
|
||||
void to_json(BasicJsonType& j, const std::optional<T>& opt) noexcept
|
||||
void to_json(BasicJsonType& j, const std::optional<T>& opt) noexcept(std::is_nothrow_assignable<BasicJsonType&, const T&>::value)
|
||||
{
|
||||
if (opt.has_value())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user