This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC - Another step towards dynarray?


On 27 April 2014 22:05, Ed Smith-Rowland wrote:
> Greetings,
>
> I had a start on <dynarray> in my tree and started working on it after stage
> 1 opened on gcc-4.10.
>
> After googling around I stumbled on the always_inline attribute and decided
> to try it.  It seems to work.

Are you sure this behaves correctly for cases like
std::vector<dynarray> or dynarray as a member of a class?

> Anyway, somehow I had forgotten about the conversations about this that
> Jonathan and Ruediger had on libstdc++ in the 2013-09 timeframe.  So I
> stopped work so as not to scoop anyone - I'm sorry if I did.
>
> I would like to offer this incomplete patch (the allocator ctors are messed
> up, also there's a DR).  I think, assuming I really am right about
> [[gny::always_inline]] offering us a way forward. It would be goo to have
> someone take that solution and merge it into one of our patches (I think
> Jonathan is ahead on the allocator thing).  Or work something out.

I would forget about allocator support in dynarray for now, until the
committee decide what they want to do.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]