This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: patch: <bits/localefwd.h> with -fno-exceptions
- To: Nathan Myers <ncm at cantrip dot org>
- Subject: Re: patch: <bits/localefwd.h> with -fno-exceptions
- From: Dirk Mueller <dmuell at gmx dot net>
- Date: Mon, 15 Jan 2001 00:57:51 +0100
- Cc: Harri Porten <harri at trolltech dot com>, libstdc++ at gcc dot gnu dot org
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.