gcc/testsuite/g++.dg/cpp2a/concepts-ttp1.C
raw| 1 | // PR c++/95371 |
| 2 | // { dg-do compile { target c++20 } } |
| 3 | |
| 4 | template <typename...> |
| 5 | struct configuration { |
| 6 | template <template <typename...> typename query_t> |
| 7 | static constexpr bool exists() { return true; } |
| 8 | |
| 9 | template <template <typename...> typename query_t> |
| 10 | void remove() requires(exists<query_t>()); |
| 11 | }; |
| 12 | |
| 13 | int main() { |
| 14 | configuration<> cfg{}; |
| 15 | cfg.remove<configuration>(); |
| 16 | } |