id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4542,bind() should use boost::result_of,anonymous,Peter Dimov,"if at all possible boost::bind(F(),...) should use boost::result_of instead of directly accessing F::result_type. this way functors whose result type depends on the argument types could be used in bind(), for example: {{{ #include #include using namespace boost; struct F{ template struct result; template T operator()(T const &t) const{ return t; } }; template struct F::result{ typedef T type; }; template void g(F const &f){ typename boost::result_of::type res=f(); } int main(){ f(bind(F(),4)); //error. no result_type in F } }}}",Bugs,new,Boost 1.44.0,bind,Boost 1.44.0,Problem,,,