
20 Jun
2012
20 Jun
'12
1:08 a.m.
Hi Evan,
2012/6/20 Evan Driscoll
When trying to compile the following:
std::vector<int> v; v | boost::adaptors::transformed([] (int x) { return x; });
I get a bunch of compile errors. If I replace the lambda with a function defined normally, it works.
You must use #define BOOST_RESULT_OF_USE_DECLTYPE C++11 lambda can't apply non decltype-base result_of.
======================== Akira Takahashi mailto:faithandbrave@gmail.com https://sites.google.com/site/faithandbrave/about/en