Boost logo

Boost Users :

Subject: Re: [Boost-users] [Tuple] Addressing by named tag?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-07-09 13:06:20


On Thu, Jul 9, 2009 at 6:00 PM, Zeljko Vrba <zvrba_at_[hidden]> wrote:

> On Thu, Jul 09, 2009 at 05:49:39PM +0100, Robert Jones wrote:
> > Am I correct in believing that tuples have to be accessed by element
> index,
> > as in
> >
> > tuple.get<0>()
> >
> > Multi-Index container has a really nice facility to use named (well typed
> > really) tags in these
> > kind of expressions, but it seems tuples do not.
> >
> > Anyone fancy adding it to tuple?
> >
> You're basically looking for fusion maps (look at the boost.fusion
> library).
>

Thanks Zeljko

I always find fusion "challenging", due to limited time to absorb it as much
as
anything. Perhaps you could show me the way with few well crafted lines?

Thanks, Rob.



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