Topic: STL draft version


Author: johna@daldd.sc.ti.com (John Apostol)
Date: 1998/06/24
Raw View
What is the status of the STL standard?  For example
I installed libstdc++-2.8.1.1 / gcc-2.8.1 and
class vector; does not contain an 'at()' member ( e.g. as
mentioned in Stroustrup)
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: "P.J. Plauger" <pjp@dinkumware.com>
Date: 1998/06/24
Raw View
John Apostol <johna@daldd.sc.ti.com> wrote in article <6mov7j$3gt$1@superb.csc.ti.com>...
> What is the status of the STL standard?  For example
> I installed libstdc++-2.8.1.1 / gcc-2.8.1 and
> class vector; does not contain an 'at()' member ( e.g. as
> mentioned in Stroustrup)

There is no formal standard for STL. It is a package developed by Hewlett-Packard
and made freely available for others to use. Silicon Graphics (SGI) and others have
enhanced STL in various ways, some to make packages also freely available and
some to make commercial products. The code you are looking at is one such
package.

In July 1994, the C++ Standards committee voted to add (most of) STL to the
draft C++ Standard. That spec was altered in some way essentially every four
months thereafter through November 1997. The C++ committee has submitted
this ``final'' draft (FDIS) to ISO for formal approval as an ISO Standard. That
approval has not yet occurred. ANSI will almost certainly adopt the approved
C++ Standard as an ANSI standard as well. But that hasn't happened yet
either, naturally enough.

The difference you've detected between one particular implementation of STL
and one particular book is commonplace. Expect such differences to be a
problem for at least the next year or two, as both vendors and authors catch
up with the final specification. (BTW, in this particular case, Stroustrup's
words match the FDIS.)

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: James Kuyper <kuyper@wizard.net>
Date: 1998/06/24
Raw View
John Apostol wrote:
>
> What is the status of the STL standard?  For example
> I installed libstdc++-2.8.1.1 / gcc-2.8.1 and
> class vector; does not contain an 'at()' member ( e.g. as
> mentioned in Stroustrup)

According to my calendar, the final vote on the standard was scheduled
for yesterday (1998/06/23). I'm surprised not to see an announcement of
the results today. Do I have the wrong date?

Assuming that the FDIS is approved, implementations compatible with it
to varying degrees are already available, or soon will be. However,
there are probably a fair number of implementors who won't even start
work on their implementation until the vote is final. It's going to be
quite a while before fully conforming implementations are commonplace.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: stephen.clamage@sun.com (Steve Clamage)
Date: 1998/06/24
Raw View
James Kuyper <kuyper@wizard.net> writes:

>John Apostol wrote:
>>
>> What is the status of the STL standard?  For example
>> I installed libstdc++-2.8.1.1 / gcc-2.8.1 and
>> class vector; does not contain an 'at()' member ( e.g. as
>> mentioned in Stroustrup)

>According to my calendar, the final vote on the standard was scheduled
>for yesterday (1998/06/23). I'm surprised not to see an announcement of
>the results today. Do I have the wrong date?

The 2-month voting period closed on June 23. I'm told by the ISO
rep that it will take a while before the results are announced.
Why? I have no idea. But everything associated with ISO seems to
take a long time.

As soon as ISO releases the results, they will be posted here
and in the other C++ newsgroups.

--
Steve Clamage, stephen.clamage@sun.com


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]