Modify

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
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;

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by matias

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain matias.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.