View Single Post
Old 01-09-2012, 10:01 AM   #2
Junior Member
Location: IN

Join Date: Jul 2011
Posts: 1
Default foreach fix

The error is caused by the re-define of foreach in common.h:

#define foreach BOOST_FOREACH

You can run a bash script to change all the foreach to for_each as:

for x in *.cpp *.h; do sed 's/foreach/for_each/' $x > x; mv x $x; done

and manually change back the #include <boost/foreach.hpp> in common.h.
lib is offline   Reply With Quote