Boost logo

Boost Users :

Subject: Re: [Boost-users] Warning c4002 with boost_foreach
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-05 18:38:16


AMDG

Sean Farrow wrote:
> Hi:
> Could somebody please tell me why I get a warning c4002 with the
> following boost::foreach declaration?
> BOOST_FOREACH(
> boost::bimaps::bimap<boost::bimaps::set_of<std::vector<std::bitset<6>>>,
> int>::left_reference CurrentSign, SignsList.left )
> Should I use a typedef instead

Yes. Since BOOST_FOREACH is a macro the arguments cannot
contain unparenthesized commas.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net