Nicolai M. Josuttis: solutions in time  C++ and Visual C++

Neither Visual C++ 5.0 nor Visual C++ 6.0 nor Visual C++ .NET (Version 7.0, before 2003) are standard-conforming. For this reason, some examples of my books don't compile.

For example, if you try to compile io/outbuf2.cpp of my book The C++ Standard Library you will get some error messages such as follows:

> error C2512: 'basic_ostream<char,struct std::char_traits<char> >' : no appropriate default constructor available
> error C2614: 'fdostream' : illegal member initialization: 'ostream' is not a base or member

To get a (more) standard-conforming compiler you:

Hope it helps.

Home Page