#include <iostream>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
class BASE
{
public:
int fun1(int i){return i * 1;}
};
int main(){
int (BASE::*pf2)(int);
boost::shared_ptr<BASE> pB = boost::make_shared<BASE>();
pf2 = &BASE::fun1;
std::cout << (pB->*pf2)(3) << std::endl; // compile wrong: error: no match for operator->* in pB ->* pf2 |
}
这是否意味着布恩斯特图书馆没有实施,而且不执行;* 经营者支持使用它来援引成员的职能点?