Boost logo

Boost :

Subject: Re: [boost] [utility] new auto_buffer class --- RFC
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-03-04 11:29:38


Thorsten Ottosen skrev:
> Matt Calabrese skrev:
>> On Mon, Mar 2, 2009 at 1:04 PM, Thorsten Ottosen <
>> thorsten.ottosen_at_[hidden]> wrote:
>>> or *obj.begin()[n]. So there are plenty of ways to get a refence into
>>> the
>>> array.
>>
>>
>> True, though you have the admit that is a bit odd and inconsistent
>> with the
>> STL. If someone really wants the optimized returns, I would maybe
>> consider
>> having them named differently from those of container concepts but still
>> supporting STL-style accessors by default. This way, generic code written
>> for standard containers will work with your types.

> I don't know id this was present before the review, or if it was added
> later. Any comments, Jan?

I talked with Jan. He said it was suggested by a reviewer.

-Thorsten


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