C++ boost::绑定和<&书信电报;C+中的运算符+;

C++ boost::绑定和<&书信电报;C+中的运算符+;,c++,boost,bind,C++,Boost,Bind,我想绑定您可能可以使用的: 向量V; // ... 复制(V.begin(),V.end(),ostream_迭代器(cout,“\n”); 相反,您可以尝试boost.lambda: //using namespace boost::lambda; for_each(begin, end, stream << _1)); //使用名称空间boost::lambda; 对于每个(开始、结束、流) Error 1 error C2780: 'boost::_bi::bind_

我想绑定您可能可以使用的:

向量V; // ... 复制(V.begin(),V.end(),ostream_迭代器(cout,“\n”);
相反,您可以尝试boost.lambda:

//using namespace boost::lambda;
for_each(begin, end, stream << _1));
//使用名称空间boost::lambda;
对于每个(开始、结束、流)
Error   1   error C2780: 'boost::_bi::bind_t<_bi::dm_result<MT::* ,A1>::type,boost::_mfi::dm<M,T>,_bi::list_av_1<A1>::type> boost::bind(M T::* ,A1)' : expects 2 arguments - 3 provided c:\source\repository\repository\positions.cpp   90
vector<int> V;
// ...
copy(V.begin(), V.end(), ostream_iterator<int>(cout, "\n"));
//using namespace boost::lambda;
for_each(begin, end, stream << _1));
bind(static_cast<std::ostream& (std::ostream::*)(int)>(&std::ostream::operator<<), ref(std::cout), _1)