blob: f7fffc5127dda2f91783e065a0f71ba845b339a0 [file] [log] [blame]
// PR c++/69392
// { dg-do compile { target c++14 } }
template <typename T>
class Foo {
public:
void foo(void) {}
auto getCallableFoo(void) {
return
[ptr = this]() { ptr->foo(); };
}
};
int main()
{
Foo<int> f;
auto callable = f.getCallableFoo();
callable();
}