Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] problem with templated recursive transform
From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2009-02-10 02:57:55


Eric Niebler <eric <at> boost-consulting.com> writes:

> You can get pretty far with preprocessor hacks to hide the msvc
> workarounds. Here's something to get your gears turning:
>
> #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
> #define _value(x) call<proto::_value(x)>
> #endif
>
> Now, if proto::_value(proto::_left) shows up in your grammar, it gets
> turned into proto::call<proto::_value(proto::_left)>. I use this trick a
> lot.

Cool stuff, Eric, but I nearly missed that one.
Could you copy'n'paste this to the "Unsorted tips and tricks" section
of the proto docs?

Markus

(Who is forced to program in C#/CLI for a while instead of working
with proto :-( )


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