This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc's STL library


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]