Mail Archives: djgpp/2000/02/07/11:44:55
On Mon, 7 Feb 2000, Peter Karp wrote:
> As I'm a newbie I have problems to understand why this is so, as
> Bjarne Stroustrup explains all the functions of the STL in his book
> and I thought the different implementations of the STL would of course
> include all the functions which are defined in the ANSI standard!
> I was really surprised to find out that this is not the case :-(
Welcome to the real world ;-)
There's a large difference between describing a feature in a book and
getting it to work in real life. The designers of the ANSI C++ standard
defined a humongously large language, and now everybody and their dog are
struggling to implement all that stuff. It takes time.
AFAIK, no single compiler has a fully-compliant C++ library at this
time. And the GNU implementation (used by DJGPP) is no exception.
Work is under way to put all those new features into the GNU STL
implementation, so this will be available, eventually.
> (One of the points which makes it harder for a C++ newbie and for sure
> a problem when trying to port a program to different compilers)
My advice to newbies is to avoid using the features that are not known to
be available in all implementations.
- Raw text -