2009-12-15から1日間の記事一覧
昨日のエントリで、boost::bind使えるはずだよ的なことを書いたので、その補足。 #define BOOST_BIND_ENABLE_STDCALL #include <windows.h> #include <boost/shared_ptr.hpp> #include <boost/bind.hpp> template <typename T> struct deref_ptr; template <typename T> struct deref_ptr<T *> { typedef T type; }; using boost::shared_ptr</t></typename></typename></boost/bind.hpp></boost/shared_ptr.hpp></windows.h>…