[Boost-bugs] [Boost C++ Libraries] #5700: warning in object_pool.hpp:56

Subject: [Boost-bugs] [Boost C++ Libraries] #5700: warning in object_pool.hpp:56
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-15 02:57:36


#5700: warning in object_pool.hpp:56
--------------------------------------------------------------+-------------
 Reporter: Markus Mohrhard <markus.mohrhard@…> | Owner: cnewbold
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: pool
  Version: Boost 1.47.0 | Severity: Cosmetic
 Keywords: |
--------------------------------------------------------------+-------------
 In the file object_pool.hpp:56 the variable const size_type next_size
 shadows a member variable from the superclass.

 I suggest to rename the variable to nnext_size, the same name is used in
 the constructor in pool.hpp to prevent this warning.

 Attached a simple fix for this

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5700>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC