
30 May
2006
30 May
'06
5:28 p.m.
Eric Niebler wrote:
Neal Becker wrote:
#include <boost/range.hpp> #include <vector>
template<typename in_t, typename out_t> void copy (in_t const& in, out_t &out) {}
int main() { std::vector<int> out (2); copy (boost::make_iterator_range (out.begin(), out.begin()+2), boost::make_iterator_range (out.begin(), out.begin()+2)); }
If make_iterator_range() returned a const-qualified iterator_range<>, this would work. Thorsten?
Isn't the problem thet out is a reference? -Thorsten