|
Boost Users : |
Subject: Re: [Boost-users] [Fusion] How to join more than two sequences
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-09-29 12:45:58
On 09/22/10 10:38, Larry Evans wrote:
[snip]
> The attachment shows my try; however, it fails to compile
> with the error:
>
> fold_join.cpp:87:47: instantiated from here
> /home/evansl/prog_dev/boost-svn/ro/trunk/boost/fusion/support/detail/category_of.hpp:15:38:
> error: 'const boost::fusion::joint_view<const boost::fusion::vector<>&,
> boost::fusion::vector<tu<int>, tu<char>, tu<double> >&>&' is not a
> class, struct, or union type
>
> Anyone have an idea what's wrong?
>
Using Christopher Schmidt's variadic fusion:
http://svn.boost.org/svn/boost/sandbox/SOC/2009/fusion/
solves problem.
With the attached and variadic fusion, output is:
v1=(tu<1>(100) tu<1>(b) tu<1>(300.1))
v2=(tu<2>(100) tu<2>(b) tu<2>(300.1))
v3=(tu<3>(100) tu<3>(b) tu<3>(300.1))
fold(vv,state0,join_ftor())=(tu<1>(100) tu<1>(b) tu<1>(300.1) tu<2>(100)
tu<2>(b) tu<2>(300.1) tu<3>(100) tu<3>(b) tu<3>(300.1))
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net