Skip to content

Commit e7020f5

Browse files
committed
Remove leftover constraints from deprecated methods
1 parent 3a1f7b8 commit e7020f5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

include/graphqlservice/GraphQLResponse.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ struct ValueTypeTraits<FloatType>
209209
using get_type = FloatType;
210210
};
211211

212-
template <typename ValueType>
213-
concept ValueTypeMatches = std::is_same_v<std::decay_t<ValueType>, ValueType>;
214-
215212
// Represent a discriminated union of GraphQL response value types.
216213
struct [[nodiscard]] Value
217214
{
@@ -268,13 +265,11 @@ struct [[nodiscard]] Value
268265

269266
// Specialized for all single-value Types.
270267
template <typename ValueType>
271-
void set(
272-
typename ValueTypeTraits<ValueType>::set_type value) requires ValueTypeMatches<ValueType>;
268+
void set(typename ValueTypeTraits<ValueType>::set_type value);
273269

274270
// Specialized for all Types.
275271
template <typename ValueType>
276-
[[nodiscard]] typename ValueTypeTraits<ValueType>::get_type get() const requires
277-
ValueTypeMatches<ValueType>;
272+
[[nodiscard]] typename ValueTypeTraits<ValueType>::get_type get() const;
278273

279274
// Specialized for all Types which allocate extra memory.
280275
template <typename ValueType>

0 commit comments

Comments
 (0)