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
proto::terminal<std::pair<_,_>>

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)>

TIA

-- 
___________________________________________
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