File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,9 @@ g(baz{}); // PASS.
221
221
``` c++
222
222
template <typename T>
223
223
concept C = requires (T x) {
224
- {* x} -> typename T::inner; // the type of the expression ` *x ` is convertible to ` T::inner `
224
+ {* x} -> std::convertible_to< typename T::inner > ; // the type of the expression ` *x ` is convertible to ` T::inner `
225
225
{x + 1} -> std::same_as<int >; // the expression ` x + 1 ` satisfies ` std::same_as<decltype((x + 1))> `
226
- {x * 1} -> T ; // the type of the expression ` x * 1 ` is convertible to ` T `
226
+ {x * 1} -> std::convertible_to< T > ; // the type of the expression ` x * 1 ` is convertible to ` T `
227
227
};
228
228
```
229
229
* ** Nested requirements** - denoted by the ` requires ` keyword, specify additional constraints (such as those on local parameter arguments).
Original file line number Diff line number Diff line change @@ -324,9 +324,9 @@ g(baz{}); // PASS.
324
324
``` c++
325
325
template <typename T>
326
326
concept C = requires (T x) {
327
- {* x} -> typename T::inner; // the type of the expression ` *x ` is convertible to ` T::inner `
327
+ {* x} -> std::convertible_to< typename T::inner > ; // the type of the expression ` *x ` is convertible to ` T::inner `
328
328
{x + 1} -> std::same_as<int >; // the expression ` x + 1 ` satisfies ` std::same_as<decltype((x + 1))> `
329
- {x * 1} -> T ; // the type of the expression ` x * 1 ` is convertible to ` T `
329
+ {x * 1} -> std::convertible_to< T > ; // the type of the expression ` x * 1 ` is convertible to ` T `
330
330
};
331
331
```
332
332
* ** Nested requirements** - denoted by the ` requires ` keyword, specify additional constraints (such as those on local parameter arguments).
You can’t perform that action at this time.
0 commit comments