Boost logo

Boost Users :

Subject: Re: [Boost-users] Please help with metaprogramming question : termination of recursion
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-09 11:27:39


Hartmut Kaiser wrote:
> template <typename STLCollection, typename FusB, typename FusE>
> void process_append (STLCollection& collection, const FusB& begin, const
> FusE& end,
> mpl::false_)
> {
> std::cout << "Yip! ";
> typename result_of::deref<FusB>::type r= deref(begin);
> collection.insert (collection.end(), boost::begin(r), boost::end(r));
> typename result_of::next<FusB>::type successor= next(begin);
> process_append (collection, successor, end,
> is_same< typename result_of::next<FusB>::type, FusE>());

Doens't fusion use fusion::equal_to instead of is_same?

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at