Re: latest STL

From: Ulrich Eckhardt (doomster_at_knuut.de)
Date: 08/19/03


Date: Tue, 19 Aug 2003 08:37:09 +0200

Shuo Xiang wrote:
> A few weeks ago I wasn't able to get a Euchre game compile on my
> computer because it had an outdated version of the STL vector which
> did not include the bound checking "at()" function which fulfills
> essentially the same task as the [] member operator.
>
> Since it is to my knowledge that the entire STL comes as a collection
> of header files only, is it possible to upgrade STL just by
> downloading the latest version of the respective header files (I'm
> most interested in stl_vector.h) ? Or do I have to upgrade gcc itself
> to 3.x?

The STL is not part of C++. The 'standard template library' was invented by
HP and made publicly available. You can still download a version from the
net.
It was also presented to the standards-comittee for standardization and
strongly influenced the template-containers in the stdlib. Every compiler
has an implementation thereof. But that's just to make sure we know what
we talk about.

> If a header file upgrade is possible, where do I find them (I believe
> HP makes them)

Nope. You might be able to replace the whole stdlib with e.g. STLport. You
also might be able to upgrade from GCC3.2.0 to 3.2.1 but that's about all.
Exchanging a single file with one from a completely different stdlib won't
work.

sorry&good luck

Uli

-- 
Questions ?
see  C++-FAQ Lite: http://parashift.com/c++-faq-lite/  first !


Relevant Pages

  • Re: STL support for 64 bit applications
    ... SGI was the last maintainer of the STL, before large parts of it were ... the C++ stdlib is technically not correct... ... are working standard libs on 64 bit systems. ...
    (microsoft.public.vc.stl)
  • Re: bitset assignment & copy constructor
    ... This is the official C++ language standard (including the standard ... I'd like to point out that the official STL and STL documentation are ... You should only look at the C++ stdlib, ...
    (microsoft.public.vc.stl)
  • Re: Kann hier auch zum Thema c++ gefragt werden ?
    ... Gemeint war die STL = Standard Lib, sorry, Info: ... one can now push and pop integers onto this stack. ... In Java hat ist man übrigens von einigen zentralen Klassen, ...
    (de.comp.lang.c)
  • Re: Visual Studio STL on Linux? Portable STL suggestion?
    ... STL freely available with a commercial licence for e.g. Linux? ... the C++ standard (in fact it was in large parts incorporated into the ... MFC so you couldn't legally compile it using WINE under a free OS. ... STLport is a free project that also aims to provide a portable standard ...
    (microsoft.public.vc.stl)
  • Re: Any F2003 help translating C++ map syntax?
    ... >>part of the standard language, but makes a mockery of comparing ... > I sometimes miss convenient containers in the standard Fortran. ... That means that the standard STL might not be as ... > a hash table, if I remember correctly. ...
    (comp.lang.fortran)