
30 May
2006
30 May
'06
6:03 p.m.
Eric Niebler wrote:
Thorsten Ottosen wrote:
Eric Niebler wrote:
If make_iterator_range() returned a const-qualified iterator_range<>, this would work. Thorsten?
Isn't the problem thet out is a reference?
out is a reference, which means that non-const rvalues will not bind to it. But const rvalues will because out_t will be deduced to be "iterator_range<> const". Try it and see.
I see. I certainly didn't know that. I could get it to work on gcc, but not vc8. On what compilers does it actually work? -Thorsten