id summary reporter owner description type status milestone component version severity resolution keywords cc 3410 "Warnings in Boost::function when compiled with ""-Wold-style-cast""" c-rom ( -at- ) gmx . de Douglas Gregor "Boost::function reports warnings when compiled with ""-Wold-style-cast"". There are several old style casts left (besides many ""new style casts"", so this might be harmonized) in files: boost/function/function_base.hpp boost/function/function_template.hpp Please see ticket #2983 which is very similar to this one. The following code example reproduces the issue with Boost 1.40: Example.cpp %<------------------------------------- #include #include struct add { int operator()( int arg1, int arg2 ) { return ( arg1 + arg2 ); } }; int main( int argc, char** argv ) { boost::function f; f = add(); std::cout << f( 2, 2 ) << std::endl; return 0; } %<------------------------------------- The piece of code for this bug report has been compiled with g++ (GCC) 3.4.3: g++ -Wold-style-cast -o Example -I Example.cpp " Bugs closed Boost 1.41.0 function Boost 1.40.0 Cosmetic fixed old-style-cast