| 26 | pet(lizard{}); // { dg-error "no matching function for call to 'pet\\\(lizard\\\)'" } | |
| ~~~^~~~~~~~~~ |
| 26 | pet(lizard{}); // { dg-error "no matching function for call to 'pet\\\(lizard\\\)'" } | |
| ~~~^~~~~~~~~~ |
| 21 | void pet(pettable auto t); | |
| ^~~ |
| 21 | void pet(pettable auto t); | |
| ^~~ |
| 21 | void pet(pettable auto t); | |
| ^~~ |
| 19 | concept pettable = has_member_pet<T> or has_default_pet<T>; | |
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ |
| 19 | concept pettable = has_member_pet<T> or has_default_pet<T>; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 13 | concept has_member_pet = requires(T t) { t.pet(); }; | |
| ~~~~~^~ |
| 13 | concept has_member_pet = requires(T t) { t.pet(); }; | |
| ~~^~~ |
| 19 | concept pettable = has_member_pet<T> or has_default_pet<T>; | |
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ |
| 16 | concept has_default_pet = T::is_pettable; | |
| ^~~~~~~~~~~ |
| 9 | void pet(dog); | |
| ^~~ |
| 9 | void pet(dog); | |
| ^~~ |
| 10 | void pet(cat); | |
| ^~~ |
| 10 | void pet(cat); | |
| ^~~ |