id summary reporter owner description type status milestone component version severity resolution keywords cc 5097 Boost Fusion fails to compile with transform or mpl headers included vivek@… Joel de Guzman "Fusion fails to compile as soon as the transform.hpp or mpl.hpp headers are included. {{{ // // Compile command: g++ test.cpp // Boost 1.45.0 // gcc -v produces: // Using built-in specs. // Target: i686-linux-gnu // Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu // Thread model: posix // gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) // // Including any of the following 3 headers, or any permutation causes the error #include #include #include int main() { return 0; } }}} Error message is the same regardless of the combination of headers: {{{ In file included from /usr/local/include/boost/fusion/view/joint_view/joint_view.hpp:15, from /usr/local/include/boost/fusion/algorithm/transformation/erase.hpp:13, from /usr/local/include/boost/fusion/mpl/erase.hpp:12, from /usr/local/include/boost/fusion/mpl.hpp:20, from /usr/local/include/boost/fusion/include/mpl.hpp:11, from test.cpp:15: /usr/local/include/boost/fusion/view/joint_view/joint_view_iterator.hpp:28: error: redeclared with 4 template parameter(s) /usr/local/include/boost/fusion/view/joint_view/detail/next_impl.hpp:19: note: previous declaration ‘template struct boost::fusion::joint_view_iterator’ used 3 template parameter(s) /usr/local/include/boost/fusion/view/joint_view/joint_view_iterator.hpp:29: error: wrong number of template arguments (4, should be 3) /usr/local/include/boost/fusion/view/joint_view/detail/next_impl.hpp:19: error: provided for ‘template struct boost::fusion::joint_view_iterator’ /usr/local/include/boost/fusion/view/joint_view/joint_view_iterator.hpp:29: error: template argument 1 is invalid }}} " Bugs closed To Be Determined fusion Boost 1.45.0 Showstopper worksforme