Opened 11 years ago

Closed 11 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:

Description

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@…> 11 years ago.
diff against trunk

Download all attachments as: .zip

Change History (3)

by Markus Mohrhard <markus.mohrhard@…>, 11 years ago

Attachment: boost_pool.diff added

diff against trunk

comment:1 by John Maddock, 11 years ago

(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 by John Maddock, 11 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.