Ticket #5700 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

warning in object_pool.hpp:56

Reported by: Markus Mohrhard <markus.mohrhard@…> Owned by: cnewbold
Milestone: To Be Determined Component: pool
Version: Boost 1.47.0 Severity: Cosmetic
Keywords: Cc:


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


boost_pool.diff (531 bytes) - added by Markus Mohrhard <markus.mohrhard@…> 6 years ago.
diff against trunk

Change History

Changed 6 years ago by Markus Mohrhard <markus.mohrhard@…>

diff against trunk

comment:1 Changed 6 years ago by johnmaddock

(In [73148]) Update docs to latest AutoIndex? version. Fix -Wshadow warnings and update Jamfile to make them errors. Fix singleton_pool to correctly propagate the MaxSize? parameter. Refs #5700. Refs #5568.

comment:2 Changed 6 years ago by johnmaddock

  • Status changed from new to closed
  • Resolution set to fixed

(In [73495]) Merge updated Pool lib from trunk. Fixes #1252. Fixes #2696. Fixes #4960. Fixes #5526. Fixes #5568. Fixes #5700.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.