Opened 6 years ago

Closed 5 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:


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 @@
     template< class T >
-    unconstrained_map_view(const T & t) {}
+    unconstrained_map_view(const T &) {}
     typedef void reference;
     typedef void const_reference;

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Matias Capeletto

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Matias Capeletto.
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.