
4 Mar
2009
4 Mar
'09
4:29 p.m.
Thorsten Ottosen skrev:
Matt Calabrese skrev:
On Mon, Mar 2, 2009 at 1:04 PM, Thorsten Ottosen < thorsten.ottosen@dezide.com> 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