id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10422,Counting Iterator return-type causes lifetime issues,Neil Groves,jeffrey.hellrung,"The counting_iterator upon integers has a dereference member function which is a reference to an integral value held in the iterator. Since an iterator may be destroyed, the reference can be invalid. An example where this occurs was provided by a user of Boost.Range. The application used counting_range with reversed and transformed adaptors. The result was garbage since the reversed dereference member function does *boost::prior(this->base()); Hence it returns a reference to a temporary iterator that results from the ""prior"" function.",Bugs,new,To Be Determined,iterator,Boost 1.56.0,Problem,,,flast@…