ref
Boost::LambdaのBoost::Phoenixに相当するものは何ですか?オンラインドキュメントで見つかりません。
#include <algorithm>
#include <string>
#include <boost/lambda/bind.hpp>
using namespace boost::lambda;
int main()
{
std::string a, b;
std::for_each(b.begin(), b.end(), ref(a) += _1); // how do I do this?
}
boost::ref
動作しboost::lambda::var
ていないようです(明らかに、演算子のオーバーロードはありません)。