Boost logo

Boost Users :

Subject: [Boost-users] Odd Warning in transform_iterator.hpp ?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-07-27 06:32:29


I'm using the current Boost library on Microsoft Visual Studio 2005. I'm getting a
warning on line 121 of transform_iterator.hpp, complaining "returning address of local
variable or temporary". The line in question is the body of this function:

     typename super_t::reference dereference() const
     { return m_f(*this->base()); }

My m_f supplied to the template is ordinary enough; it returns a value.

The exact same situation in a unit test gives no complaint!
Any idea what this is all about?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net