File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,6 @@ struct ValueTypeTraits<FloatType>
209
209
using get_type = FloatType;
210
210
};
211
211
212
- template <typename ValueType>
213
- concept ValueTypeMatches = std::is_same_v<std::decay_t <ValueType>, ValueType>;
214
-
215
212
// Represent a discriminated union of GraphQL response value types.
216
213
struct [[nodiscard]] Value
217
214
{
@@ -268,13 +265,11 @@ struct [[nodiscard]] Value
268
265
269
266
// Specialized for all single-value Types.
270
267
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);
273
269
274
270
// Specialized for all Types.
275
271
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 ;
278
273
279
274
// Specialized for all Types which allocate extra memory.
280
275
template <typename ValueType>
You can’t perform that action at this time.
0 commit comments