Opened 8 years ago
Closed 5 years ago
#10324 closed Bugs (fixed)
Fix for const-cast warning
Reported by: | 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)
Change History (4)
by , 8 years ago
Attachment: | format_patch.diff added |
---|
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 5 years ago
Milestone: | To Be Determined → Boost 1.66.0 |
---|
https://github.com/boostorg/format/pull/25 merged into develop will resolve once develop merges into master
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
patch