Opened 15 years ago

Closed 14 years ago

#1704 closed Bugs (fixed)

[any] 4512 warning from VC8/9 on warning level 4

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

Description

Running the Any tests on VC8/9 + warning level 4 produces a couple of 4512 (assignment operator could not be generated) warnings:

boost/any.hpp(130) : warning C4512: 'boost::any::holder<ValueType>' : assignment operator could not be generated

Attached is a patch to silence the warning.

Attachments (2)

any.diff (634 bytes ) - added by Richard Webb <richard.webb@…> 15 years ago.
any_private_assignment.patch (356 bytes ) - added by niels_dekker 15 years ago.
Proposed fix by adding a private assignment to any::holder

Download all attachments as: .zip

Change History (4)

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

Attachment: any.diff added

comment:1 by niels_dekker, 15 years ago

For the record, the issue is discussed at the Boost Developer mailing list, {boost} 1704 {any} 4512 warning from VC8/9 on warning level 4

by niels_dekker, 15 years ago

Proposed fix by adding a private assignment to any::holder

comment:2 by nasonov, 14 years ago

Resolution: fixed
Status: newclosed

(In [45178]) Fixes #1704 [any] 4512 warning from VC8/9 on warning level 4

Note: See TracTickets for help on using tickets.