On Thu, Jul 7, 2011 at 6:44 PM, eric <cneric12lin0@xxxxxxxxx> wrote: > Dear advanced c++ programers: > > in c++ cook book's example 4-8, it use list's object with algorithm > for_each, that can not get compiled in my > g++ compiler. Is that normal(author's fault) or my g++ side's > responsibility? > /* I get some google search, I found most of them use vector > * but in its definition , it did not forbid using list, at least > under my search capability reach so far > */ > You can get code from here. > http://examples.oreilly.com/9780596007614/ > > [SNIP] > Perhaps comp.lang.c++ would be more appropriate for this question.