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