id summary reporter owner description type status milestone component version severity resolution keywords cc 5473 [Foreach] non-const rvalue collections are treated as const collections mimomorin@… Eric Niebler "In Boost.Foreach, non-const rvalue collections are treated as const collections. So the following code does not compile: {{{ #include #include int main (int argc, char* argv[]) { BOOST_FOREACH(int& x, std::vector(3)) {} return 0; } }}} I think treating them as non-const collections is more intuitive and, at least, is consistent with C++0x range-based for. " Patches closed To Be Determined foreach Boost Development Trunk Problem wontfix