// Compiled with // /s/gcc-4.6.1/bin/g++ -std=c++0x -fsyntax-only src/test.cc -I /.../boost-1.49.0/include #include #include #include #if BOOST_VERSION != 104900 #error "Boost is not 1.49" #endif int id(int x) { return x; } int main() { std::vector v; v | boost::adaptors::transformed([] (int x) { return x; }); // broken //v | boost::adaptors::transformed(id); // works }