[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods

Thiago Macieira thiago.macieira at intel.com
Fri Aug 3 00:47:25 CEST 2012


On quinta-feira, 2 de agosto de 2012 23.57.58, Marc Mutz wrote:
> noexcept(std::declval<Object>().f()) should work.

Unfortunately, while the C++11 compiler support seems to be going fine, the 
library support is lagging WAY behind.  Add to that the fact that some 
compilers are being used with incompatible Standard Libraries, meaning the 
features don't work, even if present. To make it all worse, there are no 
library version numbers, so we can't detect them properly.

Exhibit A: MSVC supports initialiser lists, but it doesn't have 
<initializer_list>...

Exhibit B: ICC compiling certain GCC headers will cause it to fail to link 
complaining about undefined references to functions that should be intrinsics.

-- 
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/20120803/46228b8f/attachment.sig>


More information about the Development mailing list