- 150 名前:デフォルトの名無しさん mailto:sage [2009/02/21(土) 16:51:45 ]
- >>122
大先生、なんか凄いことしてるみたいだから、一部修正してVC2005でコンパイルしてみたけど、 できないよYo。どうすれば良い? #include <utility> #include <memory> #include <stdio.h> #include <process.h> #include <windows.h> #include <functional> #include <atlbase.h> class Hoge {public: UINT Proc() {puts("Hoge::Proc"); return 0;}}; template<typename T> UINT __stdcall beginthread2_entry(void* p) { typedef std::pair<T*, UINT (T::*)()> thread_data_t; thread_data_t* ptd = static_cast<thread_data_t*>(p); T* px = ptd->first; std::mem_fun_t<UINT, T> mf(ptd->second); delete ptd; return (px->*mf)(); // <======C2297: '->*' : 無効です。右オペランドには型 'std::mem_fun_t<_Result,_Ty>' が指定されています。 } // To be continued
|

|