Boost logo

Boost Users :

Subject: Re: [Boost-users] Please help with metaprogramming question : termination of recursion
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2010-07-09 11:53:22


> 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?

Indeed. Sorry for being inconcise.
Regards Hartmut

---------------
Meet me at BoostCon
www.boostcon.com


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