
12 Oct
2006
12 Oct
'06
8:48 a.m.
David Abrahams wrote:
Thorsten Ottosen <thorsten.ottosen@dezide.com> writes:
Shunsuke Sogame wrote:
Hi gurus, under RC_1_34,
#include <boost/range.hpp> #include <boost/iterator/counting_iterator.hpp>
int main() { boost::make_iterator_range( boost::make_counting_iterator(0), boost::make_counting_iterator(5) )[2]; }
VC++7.1 and GCC3.4 says a warning something like "returning address of local variable or temporary".
We could add operator() which would return operator[]()'s result by value.
Is anybody opposed to that?
Probably. What is the point of doing that?
It would fix our users problem, so he can use () to do what he want. -Thorsten