File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1570
1570
1571
1571
template <class T> int f1(T) requires (!sad<T>);
1572
1572
template <class T> int f1(T) requires (!sad<T>) && true;
1573
- int i1 = f1(42); // ambiguous, \tcode {!sad<T>} constraints are not formed from the same \grammarterm {expression}
1573
+ int i1 = f1(42); // ambiguous, \tcode {!sad<T>} atomic constraint expressions are not formed from the same \grammarterm {expression}
1574
1574
1575
1575
template <class T> concept not_sad = !sad<T>;
1576
1576
template <class T> int f2(T) requires not_sad<T>;
1577
1577
template <class T> int f2(T) requires not_sad<T> && true;
1578
- int i2 = f2(42); // OK, \tcode {!sad<T>} constraints both come from \tcode {not_sad}
1578
+ int i2 = f2(42); // OK, \tcode {!sad<T>} atomic constraint expressions both come from \tcode {not_sad}
1579
1579
1580
1580
template <class T> int f3(T) requires (!sad<typename T::type>);
1581
- int i3 = f3(42); // error, constraint not satisfied due to substitution failure
1581
+ int i3 = f3(42); // error, associated constraints not satisfied due to substitution failure
1582
1582
1583
1583
template <class T> concept sad_nested_type = sad<typename T::type>;
1584
1584
template <class T> int f4(T) requires (!sad_nested_type<T>);
You can’t perform that action at this time.
0 commit comments