[Boost-bugs] [Boost C++ Libraries] #5749: bimap: unused parameter warning in unconstrained_map_view constructor

Subject: [Boost-bugs] [Boost C++ Libraries] #5749: bimap: unused parameter warning in unconstrained_map_view constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-03 11:46:15


#5749: bimap: unused parameter warning in unconstrained_map_view constructor
------------------------------+---------------------------------------------
 Reporter: timb@… | Owner: matias
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: bimap
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 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;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5749>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC