LWN.net Logo

Well, it's nice to ignore facts...

Well, it's nice to ignore facts...

Posted Sep 4, 2011 20:45 UTC (Sun) by cmccabe (guest, #60281)
In reply to: Well, it's nice to ignore facts... by jwakely
Parent article: HP dropping webOS devices

Hi jwakely,

I did not mean to imply that the libstdc++ maintainers were slow. However, rollout of new libstdc++ versions can be quite delayed, as you know. Using shared_ptr without exceptions on older Android versions just isn't going to compile, and it would be misleading to suggest otherwise. That was what I was trying to avoid.

Just out of curiousity, are the -fno-rtti and -fno-exceptions modes part of any standard, or just something that GCC and a few other compilers implement?

P.S. as a former C++ user, thanks for all your work on libstdc++


(Log in to post comments)

Well, it's nice to ignore facts...

Posted Sep 4, 2011 21:08 UTC (Sun) by jwakely (subscriber, #60262) [Link]

Sorry for misunderstanding then. The C++ standard includes RTTI and exceptions as part of the language. They're not optional, so disabling them takes you into non-standard territory (but still reasonably portable, as -fno-rtti or -fno-exceptions and their equivalents are quite common non-standard features.)

There is (or was) an "Embedded C++" dialect which omits RTTI and exceptions, among other features, but it's not a standard and as Stroustrup has said "To the best of my knowledge EC++ is dead (2004), and if it isn't it ought to be."

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds