|
Boost : |
Subject: Re: [boost] [mpl][fold.html] apply<op, _1, deref<_2> > correction needed.
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-03-13 23:02:53
On 03/12/09 16:39, Larry Evans wrote:
> On 03/11/09 16:20, Larry Evans wrote:
> > On 03/11/09 12:07, Larry Evans wrote:
[snip]
> > So, the fold.html docs are wrong and could be corrected by
> > changing:
> >
> > apply<op,_1, deref<_2> >
> >
> > to:
> >
> > lambda<op>::type::apply<_1,deref<_2> >
> >
> > , or am I missing something else.
> >
> Apparently I was missing something because the page:
>
> http://www.boost.org/doc/libs/1_38_0/libs/mpl/doc/refmanual/apply.html
>
> Says for any _Lambda Expression_ f and arbitrary type a1,...,an:
[snip]
A new upload to vault in
Home/Template Metaprogramming/fold_html_or_app_bug.cpp
Has a test showing apply<op,_1,deref<_2> > fails and, in addition
to the lambda<op>::type::apply<_1,deref<_2> > solution, shows
another solution which involves changing the apply template
to *not* inherit from apply_wrap. Any ideas about which solution
is better?
-regards,
Larry
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk