|
Boost Users : |
Subject: Re: [Boost-users] [proto] transform for a templated proto::terminal type
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-02-06 02:44:41
Manjunath Kudlur wrote:
> This gets cumbersome when I have more Var<> types. Is there a way to
> not list each Var<> type in the grammar? That is, I want to match any
> Var<T> and just call the _var_tostr(proto::_value) transform. How can
> I accomplish this?
>
Try that:
struct var_tostr :
proto::or_<
proto::when<proto::terminal<variables::Var<proto::_> >,
_var_tostr(proto::_value)>
{};
-- ___________________________________________ 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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net