Remove noexcept from optional comparisons
This commit is contained in:
parent
d3f72b1b9c
commit
14e3318929
@ -179,7 +179,6 @@ template <typename T> const std::optional<T>& cmp_val(const optional<T>& v)
|
||||
#define JSON_OPTIONAL_COMPARISON(OP, LHS, RHS) \
|
||||
template <typename A, typename B> \
|
||||
auto operator OP (const LHS& lhs, const RHS& rhs) \
|
||||
noexcept(noexcept(JSON_OPTIONAL_COMPARISON_EXPR(OP))) \
|
||||
-> decltype(JSON_OPTIONAL_COMPARISON_EXPR(OP)) \
|
||||
{ \
|
||||
return JSON_OPTIONAL_COMPARISON_EXPR(OP); \
|
||||
|
||||
@ -4771,7 +4771,6 @@ template <typename T> const std::optional<T>& cmp_val(const optional<T>& v)
|
||||
#define JSON_OPTIONAL_COMPARISON(OP, LHS, RHS) \
|
||||
template <typename A, typename B> \
|
||||
auto operator OP (const LHS& lhs, const RHS& rhs) \
|
||||
noexcept(noexcept(JSON_OPTIONAL_COMPARISON_EXPR(OP))) \
|
||||
-> decltype(JSON_OPTIONAL_COMPARISON_EXPR(OP)) \
|
||||
{ \
|
||||
return JSON_OPTIONAL_COMPARISON_EXPR(OP); \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user