Boost logo

Boost :

Subject: Re: [boost] [gsoc][RFC] Pointer Plus Bits
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2010-07-26 10:42:02

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

Andrew Sutton

Boost list run by bdawes at, gregod at, cpdaniel at, john at