
17 Jun
2012
17 Jun
'12
12:59 p.m.
For compilers without the support of C++11 range-based for, please use the attached codes in this mail. Two files are attached. * foreach.hpp The current implementation of `BOOST_FOREACH` does not use rvalue references to bind temporary ranges. `BOOST_FOREACH` in this file implements such functionality to deal with move-only types. * moved.cpp Includes the above foreach.hpp by`#include "foreach.hpp"` and replaces C++11 range-based for with `BOOST_FOREACH`. Regards, Michel