Allow to use get with explicit constructor (#3079)
* ⏪ remove "fix" that caused #3077
This commit is contained in:
1 parent
0e694b4060
commit
ba046e4ea4
3 files changed
+36
-2
No files matched your search
@@ -3069,7 +3069,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
ValueType get_impl(detail::priority_tag<0> /*unused*/) const noexcept(noexcept(
|
||||
JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
|
||||
{
|
||||
ValueType ret{};
|
||||
auto ret = ValueType();
|
||||
JSONSerializer<ValueType>::from_json(*this, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user