Boost logo

Boost :

From: Benoit (benoit.casoetto_at_[hidden])
Date: 2008-01-31 05:03:06


I am having a look at your library which seems very interesting. But i
am having trouble finding whether there would be a way to do the
following using Proto :

typedef ... Variable;
Variable x, y;
evaluate( x - y );

The important thing that differs from your examples is that, in this
case, x and y have the exact same type... As far as i understand what
you have done, this implies instantiating both an expr<> type and the
associated context at the same time. Such a process does not appear in
any of your examples, and i can't see how it could be done the "Proto"
way... Is it simply not possible ?

Thanks for your work !
Benoît Casoetto

On Jan 28, 2008 8:26 PM, Eric Niebler <eric_at_[hidden]> wrote:
> Proto, the library for defining expression template-based
> domain-specific languages, is ready for review. It's already actively
> being used by Boost.Xpressive and by Spirit-2, and is a key enabling
> technology in the long-planned unification of Phoenix and the Lambda
> Library.
> Documentation is here:
> Download from here:
> --
> Eric Niebler
> Boost Consulting
> _______________________________________________
> Unsubscribe & other changes:

"When you have a hammer, everything else looks like a nail"

Boost list run by bdawes at, gregod at, cpdaniel at, john at