Topic: Solaris C++ standard


Author: Gabriel Dos_Reis <gdosreis@sophia.inria.fr>
Date: 1998/04/29
Raw View
Loic Tregan <loic.tregan@cert.fr> writes:

> sorry for this lame question, but :
>   under Borland C++, the string-type is well defined.
> under Solaris, using STLPort, the compiler tells mee that string is not
> defined, with the same program. why ?? does string belongs to STL or C++
> ?

You should definitely get

 "The C++ Programming Language", 3rd edition
 Bjarne Stroustrup, Addison Wesley.

It's widely available in France.

-- Gaby
---
[ 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: Loic Tregan <loic.tregan@cert.fr>
Date: 1998/04/29
Raw View
Gabriel Dos_Reis wrote:
>
> Loic Tregan <loic.tregan@cert.fr> writes:
>
> > sorry for this lame question, but :
> >   under Borland C++, the string-type is well defined.
> > under Solaris, using STLPort, the compiler tells mee that string is not
> > defined, with the same program. why ?? does string belongs to STL or C++
> > ?
>
> You should definitely get
>
>         "The C++ Programming Language", 3rd edition
>         Bjarne Stroustrup, Addison Wesley.
>

whatever the answer is, someone ask a question and I try to share my
little experience : from one platform to another I have encountered a
problem with 'string'.


[ 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: "Matt Seitz" <mseitz@meridian-data.com>
Date: 1998/04/29
Raw View
Loic Tregan wrote in message <3545D139.5683@cert.fr>...
>does string belongs to STL or C++?

Neither.  "String" and STL are seperate parts of the C++ Standard Library.



[ 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: phalpern@truffle.ma.ultranet.com (Pablo Halpern)
Date: 1998/04/25
Raw View
Xavier Huet <xavier.huet@sophia.siemens-scg.com> wrote:

>No it doesn't come with the Standard C++ Lib (neither the STL).BUT, it comes
>with rtti and cast supports.

Does it support full-featured default template parameters (i.e. where a
default parameter depends on the value of an earlier parameter)?  How
about partial specialization? Specialized class templates? Member
templates?

The ObjectSpace STL (available free at http://www.objectspace.com) works
on the 4.0 compiler (although lack of full-featured default template
parametes make maps and sets rather cumbersome to declare).  The adapted
SGI STL (Free at http://www.metabyte.com/~fbp/stl/index.html) works on
version 4.1 and up.
-------------------------------------------------------------
Pablo Halpern                   phalpern@truffle.ultranet.com

I am self-employed. Therefore, my opinions *do* represent
those of my employer.
---
[ 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: Ryszard Kabatek <kabatek@chemie.uni-halle.de>
Date: 1998/04/25
Raw View
Hankel O'Fung wrote:
> 1) I agree. Many things John mentioned are not part of the STL, though they're
> part of the standard C++. Nevertheless, it seems that there're something missing
> from SGI's STL as well as its adapted version (Fomitchev's STLport), such as the
> at() member function of vector.
>
> And that's my question: was vector's at() member function [  reference
> at(size_type n); ] removed in FDIS? I can find it in CD2 and in VC++5.0, but it
> disappears in SGI's STL, so I don't know if it was really removed or if it is
> missing in SGI's implementation of STL.
>
> Maybe put it this way: is there any website which introduces the differences
> between FDIS and CD2? It's OK not to mention some technical issues, but at least
> some references to the changes in interfaces of library functions are desirable.
>
> 2) Can anybody tell me where I can find a report on what's lacking in SGI's STL
> or STLport? SGI's and Fomitchev's homepage don't contain much information on
> this issue. (As this question doesn't seem belong to the scope of this
> newsgroup, please reply separately with e-mail.) Thanks a lot.
>
> Hankel

Hi Hankel!

A description of the Standard C++ Library -
"a complete HTML description of the
 ANSI/ISO Standard C++ Library,
 corresponding to Final Draft
 International Standard 14882 as
 completed in November 1997.",
You can find on http://www.dinkumware.com/refcpp.html

--
Ryszard Kabatek     ,,,
                   (o o)
---------------o00--(_)--00o---------------
---
[ 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: "Loic.Tregan" <Loic.Tregan@cert.fr>
Date: 1998/04/28
Raw View
Bryan Bartone wrote:
>
> I have been using 4.2 for a while.  It supports most of the important
> features.  It does not ship with STL.  There is a usable STL available
> for it which I have used with success.
>
> Look for it at:
>
>         http://www.metabyte.com/~fbp/stl/
>

personnaly, I have (sometimes) a "Signal 11"  error when compiling after
a multimap decalration. After 2 days of tricking, I give up CC for g++.
---
[ 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: Loic Tregan <loic.tregan@cert.fr>
Date: 1998/04/28
Raw View
sorry for this lame question, but :
  under Borland C++, the string-type is well defined.
under Solaris, using STLPort, the compiler tells mee that string is not
defined, with the same program. why ?? does string belongs to STL or C++
?
---
[ 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: Xavier Huet <xavier.huet@sophia.siemens-scg.com>
Date: 1998/04/22
Raw View
John Lacey wrote:

> J. de Antonio wrote:
> >
> > Can any experienced user tell me if the latest version of the Solaris
> > C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
> > drafts?
> > In particular i would like to know if it includes the Standard C++
> > Library and the STL library as they are described in these drafts.
>
> It's pretty far from current. It does have bool and the new-style
> casts, however.

bool ? I don't think so but I can be wrong.(I think that a bool defmust come
with the STL port but it's not builtin).


> It also comes with RogueWave's Tools.h++, but I
> use Boris Fomitchev's STLport adaptation of the SGI
> implementation. See
>
>         http://www.metabyte.com/~fbp/stl/
>
> What's lacking that I've seen: the new for scope,

???

> namespaces,
> member templates, explicit template parameters for template
> functions, mutable, and auto_ptr.

auto_ptr should come with the STLport ? No ?

~Xavier Huet
---
[ 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: jkanze@otelo.ibmmail.com
Date: 1998/04/22
Raw View
In article <353D06A6.12D3A71B@sophia.siemens-scg.com>#1/1,
  Xavier Huet <xavier.huet@sophia.siemens-scg.com> wrote:

    [Talking about what's missing in the current release of
     a commercial compiler...]
> > namespaces,
> > member templates, explicit template parameters for template
> > functions, mutable, and auto_ptr.

The last element of the list sounds like proof that they did the
right thing NOT introducing the new features.  Although implementations
of auto_ptr are not rare, to the best of my knowledge, none conform
to the FDIS; the semantics of auto_ptr changed radically (again)
in the November meeting.

In general, a commercial compiler which is concerned about its
customer base will NOT introduce new features until they are stable.
Formally, nothing was stable until after the last Nov. meeting, but
things like bool were probably a good bet. Touch anything having to
do with templates or the library, however, and you're playing with
fire -- a serious compiler vendor won't do it.

--
James Kanze    +33 (0)1 39 23 84 71    mailto: kanze@gabi-soft.fr
        +49 (0)69 66 45 33 10    mailto: jkanze@otelo.ibmmail.com
GABI Software, 22 rue Jacques-Lemercier, 78000 Versailles, France
Conseils en informatique orient   e objet --
              -- Beratung in objektorientierter Datenverarbeitung

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading


[ 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: "Hankel O'Fung" <hkfung@ust.hk>
Date: 1998/04/23
Raw View
Xavier Huet wrote:

> John Lacey wrote:
> > It's pretty far from current. It does have bool and the new-style
> > casts, however.
>
> bool ? I don't think so but I can be wrong.(I think that a bool def must come
> with the STL port but it's not builtin).
>
> > It also comes with RogueWave's Tools.h++, but I
> > use Boris Fomitchev's STLport adaptation of the SGI
> > implementation. See
> >
> >         http://www.metabyte.com/~fbp/stl/
> >
> > What's lacking that I've seen: the new for scope,
>
> ???
>
> > namespaces,
> > member templates, explicit template parameters for template
> > functions, mutable, and auto_ptr.
>
> auto_ptr should come with the STLport ? No ?

1) I agree. Many things John mentioned are not part of the STL, though they're
part of the standard C++. Nevertheless, it seems that there're something missing
from SGI's STL as well as its adapted version (Fomitchev's STLport), such as the
at() member function of vector.

And that's my question: was vector's at() member function [  reference
at(size_type n); ] removed in FDIS? I can find it in CD2 and in VC++5.0, but it
disappears in SGI's STL, so I don't know if it was really removed or if it is
missing in SGI's implementation of STL.

Maybe put it this way: is there any website which introduces the differences
between FDIS and CD2? It's OK not to mention some technical issues, but at least
some references to the changes in interfaces of library functions are desirable.

2) Can anybody tell me where I can find a report on what's lacking in SGI's STL
or STLport? SGI's and Fomitchev's homepage don't contain much information on
this issue. (As this question doesn't seem belong to the scope of this
newsgroup, please reply separately with e-mail.) Thanks a lot.

Hankel
--
IEEM Dept, HKUST, Clear Water Bay, Kowloon, Hong Kong
voice   (852) 2358 7103      fax   (852) 2358 0062
http://home.ust.hk/~hkfung

"For as long as I can remember, I've been searching for some reason
why we're here -- what are we doing here, who are we? If this is a
chance to find out even just a little part of that answer, I think
it's worth a human life, don't you?"
                                                   - Ellie Arroway
---
[ 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: Bryan Bartone <bbartone@edgenet.net>
Date: 1998/04/17
Raw View
I have been using 4.2 for a while.  It supports most of the important
features.  It does not ship with STL.  There is a usable STL available
for it which I have used with success.

Look for it at:

 http://www.metabyte.com/~fbp/stl/

You will need to run the configure script that comes with it.

I read a comment from a Sun developer a while back saying that SC4.2
leaned strongly to the conservative side as that was their policy for
production compilers.  Optimization and the latest features take a
back seat.

You might also want to try the egcs compiler.

>>>>> "J" == J de Antonio <j_antonio@mtsa.com> writes:

J> hi there,
J> Can any experienced user tell me if the latest version of the Solaris
J> C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
J> drafts?
J> In particular i would like to know if it includes the Standard C++
J> Library and the STL library as
J> they are described in these drafts.

J> Thanks in advance.
J> --
J> Jordi de Antonio   mailto:j_antonio@mtsa.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: John Lacey <johnl@vizdom.com>
Date: 1998/04/18
Raw View
J. de Antonio wrote:
>
> Can any experienced user tell me if the latest version of the Solaris
> C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
> drafts?
> In particular i would like to know if it includes the Standard C++
> Library and the STL library as they are described in these drafts.

It's pretty far from current. It does have bool and the new-style
casts, however. It also comes with RogueWave's Tools.h++, but I
use Boris Fomitchev's STLport adaptation of the SGI
implementation. See

 http://www.metabyte.com/~fbp/stl/

What's lacking that I've seen: the new for scope, namespaces,
member templates, explicit template parameters for template
functions, mutable, and auto_ptr.

John L



[ 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: "J. de Antonio" <j_antonio@mtsa.com>
Date: 1998/04/16
Raw View
hi there,

Can any experienced user tell me if the latest version of the Solaris
C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
drafts?
In particular i would like to know if it includes the Standard C++
Library and the STL library as
they are described in these drafts.

Thanks in advance.
--
Jordi de Antonio   mailto:j_antonio@mtsa.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: Xavier Huet <xavier.huet@sophia.siemens-scg.com>
Date: 1998/04/16
Raw View
J. de Antonio wrote:

> hi there,
>
> Can any experienced user tell me if the latest version of the Solaris
> C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
> drafts?
> In particular i would like to know if it includes the Standard C++
> Library and the STL library as
> they are described in these drafts.
>

No it doesn't come with the Standard C++ Lib (neither the STL).BUT, it comes
with rtti and cast supports.
It comes also with Tools.h++ (7.0) from RogueWave. But this version of Tools
is not compatible with the SCL of RW (If you decide to buy it).
So if you are obliged to buy SCL (normal) but also rebuy Tools.h++.

Xavier Huet - xavier.huet@sophia.siemens-scg.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: stephen.clamage@sun.com (Steve Clamage)
Date: 1998/04/16
Raw View
In article FD211552@mtsa.com, "J. de Antonio" <j_antonio@mtsa.com> writes:
>
>Can any experienced user tell me if the latest version of the Solaris
>C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
>drafts?
>In particular i would like to know if it includes the Standard C++
>Library and the STL library as
>they are described in these drafts.

The latest shipping C++ compiler from Sun is version 4.2, which
is based on the ARM, plus a few enhancements from the draft
standard. The enhancements are primarily those which do not
break source or binary compatibility with previous 4.x versions.
(That is, source code compiled with any 4.x compiler has the
same semantics and results in upward-compatible binary files,
modulo bug fixes.)

The standard C++ library as described in the draft standard is
not included in release 4.2. The supplied library is compatible
with earlier versions.

The next major release (5.0) of the compiler will include a
backward-compatible mode, and will also support the C++ standard,
including the standard library. No release date has been announced.

---
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              ]






Author: jkanze@otelo.ibmmail.com
Date: 1998/04/17
Raw View
In article <35363F5D.FD211552@mtsa.com>,
  "J. de Antonio" <j_antonio@mtsa.com> wrote:
>
> hi there,
>
> Can any experienced user tell me if the latest version of the Solaris
> C++ compiler (v.4.2 i guess) follows any of the ANSI/ISO commitee
> drafts?

The best place to ask this question is Sun support.  First, because
they should be able to give a complete answer -- a user will only
know whether something is present if he has tried to use it (or if
he has asked Sun support).  And perhaps more important, the answer
is official -- if Sun support says that such and such feature is
there, you have a right to assistance if it doesn't work like they
say.

Although I've had nothing but positive experiences with Sun so far,
if this question is for the purpose of purchase evaluation, I would
recommend getting the answers in writing.  Even if you totally trust
the company in question, employees tend to be much more careful about
being correct when the answer is in writing.

--
James Kanze    +33 (0)1 39 23 84 71    mailto: kanze@gabi-soft.fr
        +49 (0)69 66 45 33 10    mailto: jkanze@otelo.ibmmail.com
GABI Software, 22 rue Jacques-Lemercier, 78000 Versailles, France
Conseils en informatique orient   e objet --
              -- Beratung in objektorientierter Datenverarbeitung

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading
---
[ 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              ]