December 17, 2007 Re: [stlsoft][fixed_array_1d<>] size overhead | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | Matthew Wilson skrev: > "Thorsten Ottosen" <nesotto@cs.aau.dk> wrote in message > >> I have made the constructor that takes a pointer, size public, as it >> allows one to move legacy buffers into the objects. > > Am not sure about this one, as I'm concerned that the ator might be asked to > release something it did not allocate. > > Can you give me an example use case? It's not something I would be using much personally, and many has the exact same reservationas as you. This is at least the feedback I got on this proposal: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2225.html But, I do find it irritating when I work with a legacy program at work and try to use "modern" libraries, that I can't transfer buffers explicitly, and have to pay for copying an already existing buffer. Anyway, not something I have used for fixed_array yet. -Thorsten | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply