I wish to make the existence of member within dat dependent on B (or some other concept).
template <bool B>
struct dat {
void member_func() requires (B) {} //ok
std::byte member requires (B); //err
};
I know this is possible to do with specialisation but as far as I am aware that would get very ugly if multiple different member requirements were nessacary.
Is this behaviour possible without specialisation?