Opened 6 years ago

Closed 6 years ago

#5700 closed Bugs (fixed)

warning in object_pool.hpp:56

Reported by: Markus Mohrhard <markus.mohrhard@…> Owned by: Chris Newbold
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

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

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

Attachment: boost_pool.diff added

diff against trunk

comment:1 Changed 6 years ago by John Maddock

(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 John Maddock

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Chris Newbold.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.