If ampersands aren't needed for function pointers, why does boost::bind require one?

自古美人都是妖i 提交于 2019-11-30 06:56:00

Function pointers don't need it, member function pointers do.

Device::asyncUpdate is member function, as you could guess because it is being bound to this.

Here's a normative quote from n3337, 5.3.1/4

A pointer to member is only formed when an explicit & is used and its operand is a qualified-id not enclosed in parentheses.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!