[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods

Thiago Macieira thiago.macieira at intel.com
Thu Aug 2 18:27:29 CEST 2012


On quinta-feira, 2 de agosto de 2012 17.55.54, Konrad Rosenbaum wrote:
> Hi,
> 
> On Thursday 02 August 2012 15:27:03 Thiago Macieira wrote:
> > For example, in when I was just now adding it to qHash for QDateTime, I
> > realised it does complex operations. Right now, none of those operations
> > allocate memory, but it's actually very close to doing that. QDateTime has
> > a d pointer and the hash function does some manipulation of the data. If I
> > add it now, it means it cannot allocate memory, ever, in Qt 5. For that
> > reason, I'm not sure I can do it: what if the implementation for QDateTime
> > when timezones are taken into account needs to new?
> 
> Where is qHash(QDateTime) defined? It doesn't seem to be where I expected it
> (qhash.* or qdatetime.*).

qdatetime.{h,cpp}

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120802/b05eaa28/attachment.sig>


More information about the Development mailing list