Opened 14 years ago

Closed 14 years ago

#2644 closed Bugs (fixed)

Warnings C4224 from ptr_container

Reported by: Paul A. Bristow Owned by: Thorsten Ottosen
Milestone: Boost 1.38.0 Component: ptr_container
Version: Boost 1.37.0 Severity: Cosmetic
Keywords: Cc:

Description

boost/ptr_container/detail/reversible_ptr_container.hpp

C4224: nonstandard extension used : formal parameter 'hash' was previously defined as a type.

Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM (warning level 3 up)

Choice of names seems to clash. If this is troublesome to change, it would be convenient to disable warnings for MSVC with push'n'pop as this generates a great pile of warning text.

See also Trac #2643 for similar warnings from hash.

Change History (2)

comment:1 by Paul A. Bristow, 14 years ago

after

# pragma warning(disable:4127) is constant

adding

# pragma warning (disable : 4224) formal parameter was previously defined as a type.

quiets the very many warnings that I am getting.

comment:2 by Thorsten Ottosen, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.