[Qt5-feedback] new Qt5 - great! - but: What about exceptions?

Thiago Macieira thiago at kde.org
Sun May 15 00:42:32 CEST 2011


On Saturday, 14 de May de 2011 16:57:06 Gábor Lehel wrote:
> >> Sorry.  Boost exception supports the
> >> N2179-style(http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2
> >> 179.h tml) of exception objects.  They also have a wrapper function
> >> that is used when calling throw to also include type information
> >> about the exception. Once they make a copy of the exception, they
> >> then pass it around inside of a shared pointer.
> > 
> > Is this available in C++03?
> 
> AFAIK: This is C++11-only, and while the API is basically lifted from
> Boost, the Boost solution for C++03 is not fully general (IIRC only
> works with exceptions derived from something-or-other); doing it with
> full generality for all possible types of exceptions is only possible
> with the C++11 extension.

We really want to support C++11, but only if we can stay compatible for C++03 
for the time being. That means only inline stuff. No ABI differences.

For something that we don't use like exceptions, I doubt this will happen.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt.nokia.com/pipermail/qt5-feedback/attachments/20110515/d10085d5/attachment.bin 


More information about the Qt5-feedback mailing list