Updates

Latest Tweet



What's New?

Check out for latest innovation, a computer based training video collection


Like this Page

The C++ Standard Library: A Tutorial and Reference Review by akj

Full of algorithmic errors

I bought this book by looking at the overall ratings and I had a need for a reference book for STL.

The organization of the book is not smooth and of course there are many algorithmic errors. For starters the example of autoptrs on page 44-46.

I was not convinced by the example and hence I tried at home, the example does not behave as described.

I complained to author and mailed him my implementation. He balked and told me "It is compilers fault. And his example is solid."

Then the implementation of reference semantics example on page 222-223.

The count is increased for the object which is created later and thus the count on all objects referring to same object differes in every object.

Thus if the earliest created object is destructed first, then the whole reference semantics example will break.

I wrote to the author and he said "He does not have the time to look at the example. He is very busy."

My suggestion is for everybody that take the examples in the book with a pinch of salt. Try them first before getting convinced.

There are explanatory errors in containers for rbegin, rend functions and their uses, and the containers code does not include the type of the arguments or the return type. The iterator of any conatainer semantics are not explained in a comprehensive way.

And there is no good example of using the constructor

Container(beg, end).