Opened 11 years ago

Closed 10 years ago

#5995 closed Patches (worksforme)

Warnings when compiled with "-Wold-style-cast"

Reported by: Shuo Chen <giantchen@…> Owned by: No-Maintainer
Milestone: To Be Determined Component: None
Version: Boost 1.47.0 Severity: Cosmetic
Keywords: old-style-cast Cc:

Description

g++ 4.4.5 reports warnings when compiles various components with "-Wold-style-cast".

old-style-cast found in following files: boost/circular_buffer/debug.hpp boost/function/function_template.hpp boost/ptr_container/ptr_sequence_adapter.hpp boost/unordered/detail/buckets.hpp boost/unordered/detail/allocator_helpers.hpp boost/unordered/detail/emplace_args.hpp boost/unordered/detail/table.hpp boost/mpl/assert.hpp boost/functional/hash/detail/hash_float.hpp boost/functional/hash/hash.hpp boost/concept/detail/general.hpp boost/concept/detail/has_constraints.hpp boost/concept/usage.hpp

Note: it's an incomplete list, but a list of headers (indirectely) used in my program, because old-style-cast can't be found with regexp.

Please see ticket #3410 which is very similar to this one.

Those warnings exists in both Boost 1.47.0 and svn trunk 74788, I attached a patch file against svn trunk 74788.

Attachments (1)

old-style-cast.patch (12.7 KB ) - added by Shuo Chen <giantchen@…> 11 years ago.

Download all attachments as: .zip

Change History (6)

by Shuo Chen <giantchen@…>, 11 years ago

Attachment: old-style-cast.patch added

comment:1 by Shuo Chen <giantchen@…>, 11 years ago

Type: BugsPatches

comment:2 by anonymous, 11 years ago

Please do a ticket by component so that the author can take care of them.

comment:3 by viboes, 11 years ago

Component: Noneunordered
Owner: set to Daniel James

comment:4 by anonymous, 11 years ago

Component: unorderedNone
Owner: changed from Daniel James to No-Maintainer

This is for loads of libraries. I'm not taking responsibility for this one.

comment:5 by viboes, 10 years ago

Resolution: worksforme
Status: newclosed

Please do a ticket by component so that the author can take care of them.

Note: See TracTickets for help on using tickets.