id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8694,gcc -Wcast-qual warning in boost/function/function_template.hpp,Ruben Adamyan ,Douglas Gregor,"When using boost function library with -Wcast-qual and -Werror flags enabled the following error comes up boost/function/function_template.hpp:628:35 error: cast from type 'const ...*' to type 'void*' casts away qualifiers [-Werror=cast-qual] functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); ..... This warning happens when f.get_pointer() is a const pointer (e.g. it is originating from boost::cref). Which leads to this C-style cast that casts away of constness. I think this can be fixed by replacing C-style cast by const_cast(static_cast(f.get_pointer())) or by adding GCC pragmas to disable -Wcast-qual warning in this header file.",Bugs,new,To Be Determined,function,Boost 1.53.0,Cosmetic,,,