blob: 7a7458a61f1ea1e58d2cd7231082f363a974cad1 [file] [log] [blame]
// PR c++/70466
template < class T, class S >
struct A
{
explicit A (...) {}
};
template < class T, class S >
A < T, S > foo (T (S::*f) ())
{
return A < T, S > (f);
}
struct B
{
void bar () {}
};
int
main ()
{
foo (&B::bar);
return 0;
}