This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: could list's object be used with (for_each)?


On Thu, Jul 7, 2011 at 6:44 PM, eric <cneric12lin0@gmail.com> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]