|
Boost Users : |
Subject: Re: [Boost-users] [Proto] Using custom function tag in the simplified calalble context
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-10-04 11:48:49
Eric Niebler a écrit :
> That's not right. Your conj() function is returning a unary expression
> with a conj_tag tag type. Your grammar is trying to match a binary
> expression with a proto::tag::function tag type. Your grammar should be:
>
> proto::unary_expr<conj_tag, my_grammar>
>
Ah, this explains another oddities then. Ok, I think i got side-tracked
by some other example I read in the old doc.
>
> In your context, you should have an overloaded operator() like this:
>
> template<typename Expr>
> some-return-type operator()(conj_tag, Expr const &expr) const { ... }
perfect.
Thanks again for spending time answering my silly questions ;)
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
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