patch: <bits/localefwd.h> with -fno-exceptions
Dirk Mueller
dmuell@gmx.net
Sun Jan 14 15:58:00 GMT 2001
Hi,
> I don't think we want this. stl_config.h is a hangover from the
> SGI STL, which is adapted to run in severely crippled environments.
> The rest of the library is not, and we don't mean for it to be.
Does this mean the libstdc++ is not mean to compile in environments that do
not support C++ exceptions ?
Please also think of embedded environment where size still matters. Not
being able to compile a simple C++ program because even essential header
files include bits/localefwd.h is a severe limitation in the use of this
library.
In my opinion a standard library should not impose any unnecessary burdons
on its users. Requiring exceptions-support basically means that everybody
who must not use exceptions has to rewrite and reimplement every bit of the
standard library they need.
I agree that __STL_THROW et al makes the code much more difficult to read.
If there would be a better support for "no exceptions" then there could be a
better solution (i.e. be able tell the compiler to ignore throw/catch
statements).
Thanks for considering,
Dirk.
More information about the Libstdc++
mailing list