If you like std::function and std::bind, use C++11.
Eles if you coding with C++98, use boost.
Eles if you don't want to include boost, try my tool!
It's unprotected and simple.
如果想得到仿函式帶來的好處
但又不想採用boost也不想改用C++11編譯器
那麼試試這個版本吧
Public domain
完全自由使用