Modify

Opened 3 years ago

Closed 8 weeks ago

#10324 closed Bugs (fixed)

Fix for const-cast warning

Reported by: harris.pc@… Owned by: James E. King, III
Milestone: Boost 1.66.0 Component: format
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

I see this warning in GCC 4.7.2, using Boost 1.56.0

boost/format/feed_args.hpp|121 col 9| warning: cast from type ‘const void*’ to type ‘boost::remove_reference<long unsigned int>::type* {aka long unsigned int*}’ casts away qualifiers [-Wcast-qual]

boost/format/feed_args.hpp|126 col 9| warning: cast from type ‘const void*’ to type ‘long unsigned int*’ casts away qualifiers [-Wcast-qual]

I've made a simple change to the code that avoids these warnings - please see attached patch.

Attachments (1)

format_patch.diff (733 bytes) - added by harris.pc@… 3 years ago.
patch

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by harris.pc@…

Attachment: format_patch.diff added

patch

comment:1 Changed 2 months ago by James E. King, III

Owner: changed from Samuel Krempp to James E. King, III
Status: newassigned

comment:2 Changed 2 months ago by James E. King, III

Milestone: To Be DeterminedBoost 1.66.0

https://github.com/boostorg/format/pull/25 merged into develop will resolve once develop merges into master

comment:3 Changed 8 weeks ago by James E. King, III

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain James E. King, III.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.