This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
__STL_NO_NAMESPACES is wrong
- To: libstdc++ at gcc dot gnu dot org
- Subject: __STL_NO_NAMESPACES is wrong
- From: "Paul J. Lucas" <pauljlucas at mac dot com>
- Date: Tue, 17 Apr 2001 08:24:30 -0700 (PDT)
In stl_config.h, there is a section that defines a bunch of
stuff for the g++ compiler (#ifdef __GNUC__). For recent
versions, it incorrectly (in my opinion) defines __STL_NO_NAMESPACES
(this despite the fact that it also defines __STL_HAS_NAMESPACES).
The __STL_NO_NAMESPACES flag is supposed to be user-defined
only, yet it's defined by the header and there is no way for the
user to undefine it (short of editing the header file. (It's
also defined incorrectly for _MSC_VER).
One consequence of this is that std::iterator doesn't get
defined. I saw that this has been a known problem since at
least late 1999 (from another mailing list's archives).
Shouldn't this be fixed? Simply removing all definitions of
__STL_NO_NAMESPACES does it.
- Paul