Boost logo

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 { ... }

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, kalb at, bjorn.karlsson at, gregod at, wekempf at