
26 Jul
2010
26 Jul
'10
2:51 p.m.
On Mon, Jul 26, 2010 at 10:42 AM, Andrew Sutton <andrew.n.sutton@gmail.com>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@gmail.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- thanks, Brian Bartman