[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods
Marc Mutz
marc.mutz at kdab.com
Thu Aug 2 23:01:55 CEST 2012
On Thursday August 2 2012, Konrad Rosenbaum wrote:
> On Thursday 02 August 2012, Thiago Macieira wrote:
> > On quinta-feira, 2 de agosto de 2012 17.55.54, Konrad Rosenbaum wrote:
> > > Where is qHash(QDateTime) defined? It doesn't seem to be where I
> > > expected it (qhash.* or qdatetime.*).
> >
> > qdatetime.{h,cpp}
>
> Ok, found it - had the wrong branch checked out for some odd reason. This
> has a high likelyhood of causing allocations if time zones, calenders or
> anything fancy is active: it causes time zone calculations, which
> potentially cause allocations.
That begs the question whether this is what should happen for a _hash_, which
is supposed to be _fast_ :)
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
More information about the Development
mailing list