Opened 11 years ago

Closed 10 years ago

#5749 closed Bugs (fixed)

bimap: unused parameter warning in unconstrained_map_view constructor

Reported by: timb@… 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;

Change History (1)

comment:1 by Matias Capeletto, 10 years ago

Resolution: fixed
Status: newclosed

(In [78573]) [Bimap] Merge to release ( [78154] Fix #3868, [78159] Fix #5749 )

Note: See TracTickets for help on using tickets.