How to pass result of boost::bind to arg of template function ?