This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: could list's object be used with (for_each)?
- From: Jeffrey Walton <noloader at gmail dot com>
- To: eric <cneric12lin0 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 19:57:03 -0400
- Subject: Re: could list's object be used with (for_each)?
- References: <00aca5a4-6403-4b0c-abe4-36148e378fb7@hd10g2000vbb.googlegroups.com>
- Reply-to: noloader at gmail dot com
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.