This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc's STL library
- To: rainer at rainer dot informatik dot uni-stuttgart dot de
- Subject: Re: gcc's STL library
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 6 Nov 1999 22:57:03 +0100
- CC: gcc at gcc dot gnu dot org
- References: <m11jpq8-000HVzC@rainer.informatik.uni-stuttgart.de>
> I'm wondering, why gcc-2.95.2 still has a quite weak STL library.
This is mostly for historic reasons. A project to rewrite libstc++ is
underway, see http://sourceware.cygnus.com/libstdc++/.
> As an example, there is not limits include file, although it is
> present in SGI's downloadable implementation. Are there any
> copyright problems with this version?
I don't think so. I think the problem with the limits file from SGI is
that it does not work - at least not on all platforms supported by
GCC. It says
/* NOTE: This is not portable code. Parts of numeric_limits<> are
* inherently machine-dependent, and this file is written for the MIPS
* architecture and the SGI MIPSpro C++ compiler. Parts of it (in
* particular, some of the characteristics of floating-point types)
* are almost certainly incorrect for any other platform.
*/
Hope this helps,
Martin
P.S. Reviewing that file would have easily revealed this limitation;
the comment is quite visible, in
http://www.sgi.com/Technology/STL/limits