[Boost-bugs] [Boost C++ Libraries] #5097: Boost Fusion fails to compile with transform or mpl headers included

Subject: [Boost-bugs] [Boost C++ Libraries] #5097: Boost Fusion fails to compile with transform or mpl headers included
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-20 04:46:48


#5097: Boost Fusion fails to compile with transform or mpl headers included
------------------------------+---------------------------------------------
 Reporter: vivek@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost 1.45.0 | Severity: Showstopper
 Keywords: |
------------------------------+---------------------------------------------
 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 <boost/fusion/algorithm/transformation/transform.hpp>
 #include <boost/fusion/include/transform.hpp>
 #include <boost/fusion/include/mpl.hpp>

 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<class First, class Last, class
 Concat> 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<class First, class Last, class Concat>
 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
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5097>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC