Concept to replace ref-qualifications
Is it possible to replace ref-qualifiers with concepts? I.e. instead of struct S { void func() && {} void func() & {} }; have something like this struct S { void func() requires rvalue_concept< decltype(*this) > {} void func() requires lvalue_concept< decltype(*this) > {} };
Is it possible to replace ref-qualifiers with concepts? I.e. instead of
struct S {
void func() && {}
void func() & {}
};
have something like this
struct S {
void func() requires rvalue_concept< decltype(*this) > {}
void func() requires lvalue_concept< decltype(*this) > {}
};