02 2015 档案
从std::function中抽离出函数指针类型
摘要:template struct function_traits : public function_traits {};template struct function_traits { typedef ReturnType(*pointer)(Args); typedef std::functio... 阅读全文
posted @ 2015-02-13 10:48 阳光不锈 阅读(2621) 评论(0) 推荐(1)
C++闭包到C函数指针转化
摘要:#include #include #include #include // Raw Bind - simulating auto storage behavior for static storage datatemplate class scoped_raw_bind{public: type... 阅读全文
posted @ 2015-02-11 10:54 阳光不锈 阅读(914) 评论(0) 推荐(0)