microsoft / proxy

Proxy: Next Generation Polymorphism in C++

Home Page:https://wg21.link/p3086

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function pointer can't be used to create a proxy

mingxwa opened this issue · comments

The following code won't compile, while it should.

PRO_DEF_FACADE(F, PRO_MAKE_DISPATCH_PACK());
void Foo() {}

int main() {
  pro::proxy<F> p = &Foo;  // won't compile
}