I have a fairly simple example that I'm struggling with. I'd like to use an already-defined concept in another concept's requires clause - something like this, except actually working:
template<typename T>
concept Any = true;
template<typename T>
concept UsesAnyA = requires(T t, Any auto a) {
t(a);
};
I've also tried defining UsesAny like this, to no further avail:
template<typename T, Any A>
concept UsesAnyB = requires(T t, A a) {
t(a);
};
From a conceptual (...sorry) angle it feels like this should be possible. Can anyone suggest something?