Opened 11 years ago
Closed 10 years ago
#5749 closed Bugs (fixed)
bimap: unused parameter warning in unconstrained_map_view constructor
Reported by: | Owned by: | Matias Capeletto | |
---|---|---|---|
Milestone: | To Be Determined | Component: | bimap |
Version: | Boost 1.39.0 | Severity: | Problem |
Keywords: | Cc: |
Description
With warnings enabled, the constructor for boost::bimaps::views::unconstrained_map_view
generates an unused-parameter warning:
unconstrained_map_view(const T & t) {}
Trivial patch:
--- boost/bimap/views/unconstrained_map_view.hpp +++ boost/bimap/views/unconstrained_map_view.hpp @@ -29,7 +29,7 @@ { public: template< class T > - unconstrained_map_view(const T & t) {} + unconstrained_map_view(const T &) {} typedef void reference; typedef void const_reference;
Note:
See TracTickets
for help on using tickets.
(In [78573]) [Bimap] Merge to release ( [78154] Fix #3868, [78159] Fix #5749 )