gcc/testsuite/g++.dg/modules/concept-8.h
raw| 1 | // A version of concept-6.h using an alias template + alias CTAD |
| 2 | |
| 3 | template<typename _Callable> |
| 4 | struct Base |
| 5 | { |
| 6 | Base (const _Callable &) |
| 7 | requires true |
| 8 | {} |
| 9 | }; |
| 10 | |
| 11 | template<typename _Callable> requires true |
| 12 | using Derived = Base<_Callable>; |
| 13 | |
| 14 | inline Derived all = [] (auto&& __r) {}; |