19 Mar
2013
19 Mar
'13
6:05 p.m.
On 19-03-2013 16:18, Thorsten Ottosen wrote:
It appears to me that you can just do that by implementing a wrapper class that enables you to call boost::push_back. If its too contrieved to use push_back, we may add a function called write:
template< class OutPutRange, class Rng > OutPutRange& write( OutPutRange& to, const Rng& from ) { to.write( from ); return to; }
Thinking about it, I hate the name "output range" for something which is /not/ a range (that is, it does conform to the [begin(),end()) definition). Mayby the concept here is a "Sink" or "RangeSink", so its not confused with "Sink" from http://www.boost.org/doc/libs/1_53_0/libs/iostreams/doc/concepts/sink.html -Thorsten