blob: 6944a40472583afd07aabd84f131ed150928b6fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct B {
B(); // This type is non-literal
void func();
};
template <class Class, void (Class::*Ptr)()>
void match();
template <class Any, Any Value>
void match();
void func() {
match<B, &B::func>();
}
|