【C++】template 統合スレ -- STL/Boost/Loki, etc.
■ このスレッドは過去ログ倉庫に格納されています
0767デフォルトの名無しさん
NGNG#include <iostream>
#include <memory>
class A
{
public:
void Print(void){ std::cout << "OK" << std::endl; }
};
int main()
{
std::auto_ptr< A > ptr( new A() );
void (A::*method)(void) = A::Print;
(ptr->*method)(); // ここや
return 0;
}
■ このスレッドは過去ログ倉庫に格納されています