Boost C++ Libraries: Ticket #5749: bimap: unused parameter warning in unconstrained_map_view constructor https://svn.boost.org/trac10/ticket/5749 <p> With warnings enabled, the constructor for <code>boost::bimaps::views::unconstrained_map_view</code> generates an unused-parameter warning: </p> <pre class="wiki"> unconstrained_map_view(const T &amp; t) {} </pre><p> Trivial patch: </p> <pre class="wiki">--- boost/bimap/views/unconstrained_map_view.hpp +++ boost/bimap/views/unconstrained_map_view.hpp @@ -29,7 +29,7 @@ { public: template&lt; class T &gt; - unconstrained_map_view(const T &amp; t) {} + unconstrained_map_view(const T &amp;) {} typedef void reference; typedef void const_reference; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5749 Trac 1.4.3 Matias Capeletto Thu, 24 May 2012 08:31:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5749#comment:1 https://svn.boost.org/trac10/ticket/5749#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78573" title="[Bimap] Merge to release ( [78154] Fix #3868, [78159] Fix #5749 )">[78573]</a>) [Bimap] Merge to release ( <a class="changeset" href="https://svn.boost.org/trac10/changeset/78154" title="[Bimap] Remove spurious dependency on Boost.Serialization (Fix #3868)">[78154]</a> Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3868" title="#3868: Bugs: bimap build fails without serialization library (closed: fixed)">#3868</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/78159" title="[Bimap] Solve unused constructor parameter warning (Fix 5749)">[78159]</a> Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5749" title="#5749: Bugs: bimap: unused parameter warning in unconstrained_map_view constructor (closed: fixed)">#5749</a> ) </p> Ticket