Boost logo

Boost Users :

Subject: [Boost-users] [Proto] Accessing inner types in transform
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-11-02 11:40:56

Let's say I have a grammar which have the following terminal

I want to retrieve the first type of the pair in the terminal.
Can I write :

when< terminal< pair<_,_> >, _value::first()>

or should I wrote a small meta-function that extract this type ?

when< terminal< pair<_,_> >, first_(_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, kalb at, bjorn.karlsson at, gregod at, wekempf at