Opened 15 years ago

Closed 15 years ago

#1467 closed Bugs (fixed)

[ptr_container] VC8 compiler warning

Reported by: Richard Webb <richard.webb@…> Owned by: Thorsten Ottosen
Milestone: To Be Determined Component: ptr_container
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

Running the VC8/VC9 code analyser on a project using ptr_vector results in a C6334 warning:

boost\ptr_container\nullable.hpp(48) : warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results

This warning has been silenced in the type_traits library. Can the same change be applied to Ptr_container?

Attachments (1)

ptr_container.patch (742 bytes ) - added by Richard Webb <richard.webb@…> 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Thorsten Ottosen, 15 years ago

Status: newassigned

Yes, he warning is silly IIRC, since it complains about the defacto way we use SFINAE to implement type-traiting.

Could you submit a pactch, please?

Thanks

-Thorsten

comment:2 by Richard Webb <richard.webb@…>, 15 years ago

Patch attached (based on the recent type traits changes)

by Richard Webb <richard.webb@…>, 15 years ago

Attachment: ptr_container.patch added

comment:3 by Thorsten Ottosen, 15 years ago

I have applied it to trunk

-Thorsten

comment:4 by Thorsten Ottosen, 15 years ago

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