I would like to bind the << stream operator:
for_each(begin, end, boost::bind(&operator<<, stream, _1));
Unfortunately it does not work:
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
What am I doing wrong ?