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=17Y9JPDTHP&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.

Cheers,

-- 
john hagen ~ [EMAIL PROTECTED]
=================================

Reply via email to