Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Functions returning an expression
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-11-14 14:21:40

Eric Niebler a écrit :
> Why don't you want to use make_expr? That's what it's for. You build
> the return type with proto::result_of::make_expr, and call
> proto::make_expr() from with f().
I have nothing against make_expr for building a single node of the
I have tons of such function combining long chains of call and i don't
thin chaing large amount o

f make_expr is good.

Is there a way to use BOOST_TYPEOF with proto ?
So maybe i can write :

BOOST_TYPEOF( (vec_expr<A>()+vec_expr<B>())/(vec_expr<A>()-vec_expr<B>())
f( ... ) {}

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