Modify

Ticket #5749 (closed Bugs: fixed)

Opened 3 years ago

Last modified 23 months ago

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

Change History

comment:1 Changed 23 months ago by matias

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.