id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6744,[Assign][GIL] Boost Assign and GIL incompatibility in gcc 4.3.2,ATHundt@…,"James E. King, III","The following source code compiles under clang 3.1, but fails under gcc 4.3.2 with boost version 1.46. It doesn't look like there are updates to either library in the boost news list since then. #include #include // for 'operator+=()' #include int main(int argc, char** argv){ using namespace boost::assign; std::vector values; values += 1, 2, 3, 4; typedef boost::gil::rgb8_pixel_t pt; std::vector pixValues; pixValues += pt(1,2,3),pt(2,3,4); } ------------------------------------- Compiler versions: FAILED: gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291] Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [100%] Building CXX object CMakeFiles/boostAssign.dir/boostAssign.cpp.o /usr/local/include/boost-1_46/boost/mpl/push_back_fwd.hpp: In function ‘boost::assign::list_inserter >, V> boost::assign::operator+=(std::vector<_Tp, _Alloc>&, V2) [with V = boost::gil::pixel, boost::mpl::range_c > >, A = std::allocator, boost::mpl::range_c > > >, V2 = boost::gil::pixel, boost::mpl::range_c > >]’: /home/ahundt/sandbox/boostAssign.cpp:12: instantiated from here /usr/local/include/boost-1_46/boost/mpl/push_back_fwd.hpp:20: error: ‘template struct boost::mpl::push_back’ is not a function, /usr/local/include/boost-1_46/boost/assign/list_inserter.hpp:348: error: conflict with ‘template boost::assign::list_inserter, typename C::value_type> boost::assign::push_back(C&)’ /usr/local/include/boost-1_46/boost/assign/std/vector.hpp:31: error: in call to ‘push_back’ make[2]: *** [CMakeFiles/boostAssign.dir/boostAssign.cpp.o] Error 1 make[1]: *** [CMakeFiles/boostAssign.dir/all] Error 2 make: *** [all] Error 2 SUCCEEDED: Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix",Bugs,closed,To Be Determined,assign,Boost 1.49.0,Problem,wontfix,assign gil,