|
|
Subscribe / Log in / New account

Malcolm: Usability improvements in GCC 9

Malcolm: Usability improvements in GCC 9

Posted Mar 11, 2019 8:30 UTC (Mon) by tdz (subscriber, #58733)
In reply to: Malcolm: Usability improvements in GCC 9 by Cyberax
Parent article: Malcolm: Usability improvements in GCC 9

True. But move semantics are in some way a workaround for the excessive-copying problem of these earlier versions. And (sane use of) STL also requires C++ exceptions, which are often not available in resource-limited environments.


to post comments

Malcolm: Usability improvements in GCC 9

Posted Mar 11, 2019 9:11 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

There are STLs that work just fine without exceptions, you actually don't need them for most of the library if you just ignore the epic failure that are the iostreams.

Also, SJLJ exceptions are actually quite reasonable even for small environments (something a bit larger than 16 bit Arduino).

And then there's this nice proposal: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p... - it won't make into the coming revision of the standard, but it's on the table for the next one.

Malcolm: Usability improvements in GCC 9

Posted Mar 11, 2019 11:42 UTC (Mon) by tdz (subscriber, #58733) [Link] (1 responses)

> There are STLs that work just fine without exceptions

There are, but C++ without exceptions is not what I call "sane use of."

Malcolm: Usability improvements in GCC 9

Posted Mar 12, 2019 17:10 UTC (Tue) by k8to (guest, #15413) [Link]

Imo, C++ without exceeptions works for certain use cases, like embedded codebases. But STL without exceptions sounds very bad.


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