On 21-May-2002 John Hagen wrote:
> Sean 'Shaleh' Perry wrote:
> 
>> Brad's new code uses incorrect STL calls.  He tries to use the begin()
>> iterator
>> as a pointer to the array in the vector.  This happens to work on some
>> implementations (g++ 2.9x being one of them) but is not proper.  I have this
>> fixed in cvs and was just getting ready to make a alpha6 release.
> 
> If I may, I would like to recommend 2 books to the Blackbox developer team,
> if you don't already have them. The first (Josuttis) is the foremost tutorial
> and reference on programming with the STL:
> http://btobshop.barnesandnoble.com/textbooks/booksearch/isbninquiry.asp?userid
> =17Y9JPDTHP&mscssid=UV0JXU8D50FL9HC564XFN4MVX1US8GDB&btob=Y&isbn=0201379260
> 
> and the second (Meyers) has a bunch of gotchas to avoid and proven techniques
> to use when programming with the STL in general:
> http://btobshop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=17Y9JPDTH
> P&mscssid=UV0JXU8D50FL9HC564XFN4MVX1US8GDB&btob=Y&isbn=0201749629
> 
> These have cleared up a bunch of things for me and most of my fellow
> engineers at work have gradually adopted them (with my urging :).
> 
> The STL is a great product, but you have to know how to use it to get the
> most out of it.
> 

I own the first two myers (I do not have more effective) and recently purchased
the Josuttis.

This was simply me not reading up on every line of code Brad had written and
properly testing it with both compilers.

Thanks for the mention though, these are invaluable books.

Reply via email to