Boost logo

Boost :

Subject: Re: [boost] [gsoc][RFC] Pointer Plus Bits
From: Brian Bartman (bbartmanboost_at_[hidden])
Date: 2010-07-26 10:51:55


On Mon, Jul 26, 2010 at 10:42 AM, Andrew Sutton
<andrew.n.sutton_at_[hidden]>wrote:

> > p1.get<0>() = &i;
> >
>
> It might be nice to make the accessor a free function written as:
>
> get<0>(p1) = &i;
>
> Inside a template I think you would have to write it as:
>
> p1.template get<0>() = &1;
>
> You shouldn't have to remove the member accessor, just provide both. This
> should also make the syntax interoperable with tuples.
>
>
OK. Will add a get free function that returns a proxy reference type.

Andrew Sutton
> andrew.n.sutton_at_[hidden]
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
thanks,
Brian Bartman

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk