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: Deque::fill


chris jefferson wrote:

> On a similar note to some simplifications in vector, would it be
> better to "admit" that the size of a buffer is a compile-time
> constant, and make it a static const, rather than a function call?

You mean, we don't need anymore compiler kludges:

   *  This function started off as a compiler kludge from SGI, but seems to
   *  be a useful wrapper around a repeated constant expression.

:)

Yes, I think so.

> I mainly ask as I had a look a while ago at simplifying deque in the
> case that the objects are big enough it "degrades" into a vector of
> pointers to pointers. While the best simplifications would require
> ABI-breaking, it's possible to overload things like operator++,
> operator+, etc on _Deque_iterators with simpler versions which the
> compiler doesn't seem capable of deducing by itself.

I guess Howard has something especially relevant to say here, because
once I heard him talking about customers using very big objects (rvalue
references were of course part of the subject...)

Paolo.


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