Topic: STL Question
Author: John Weeks <mrsysv@ix.netcom.com>
Date: 1996/08/06 Raw View
Has there been any resolution of whether the STL should be in the std
namespace? I am currently having a conflict problem with the overloaded
operators in function.h and don't want to implement namespaces in my
code unless it is the future direction of C++ and the STL.
Also, is the October 95 release of HP's STL thread safe? I have read
several STL documents that suggests that some STL implementation are
not.
Thanks in advance,
John Weeks
[ 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 ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: kanze@gabi-soft.fr (J. Kanze)
Date: 1996/08/07 Raw View
John Weeks <mrsysv@ix.netcom.com> writes:
> Has there been any resolution of whether the STL should be in the std
> namespace? I am currently having a conflict problem with the overloaded
> operators in function.h and don't want to implement namespaces in my
> code unless it is the future direction of C++ and the STL.
All of the standard library is in namespace std. There was some
discusion concerning a special treatment for the operators; I don't know
what was finally decided, however.
> Also, is the October 95 release of HP's STL thread safe? I have read
> several STL documents that suggests that some STL implementation are
> not.
I don't think that any of the current implementations are either thread
safe nor exception safe. Basically, with the current implementations,
vector< string > results in undefined behavior, since the constructor to
string may throw a bad_alloc exception.
--
James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils en informatique industrielle --
-- Beratung in industrieller Datenverarbeitung
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]