Boost C++ Libraries: Ticket #8844: [PATCH] arg.hpp should use BOOST_STATIC_ASSERT https://svn.boost.org/trac10/ticket/8844 <p> template &lt;int I&gt; template&lt;class T&gt; boost::arg&lt;I&gt;::arg&lt;T&gt; (T &amp;) contains code equivalent to BOOST_STATIC_ASSERT: </p> <pre class="wiki"> // static assert I == is_placeholder&lt;T&gt;::value typedef char T_must_be_placeholder[ I == is_placeholder&lt;T&gt;::value? 1: -1 ]; </pre><p> GCC recently added a warning for this unused typedef case. This can be worked around by adding <span class="underline">attribute</span> ((<span class="underline">unused</span>)), but why not simply use BOOST_STATIC_ASSERT? </p> <p> Test suite passes. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8844 Trac 1.4.3 pmachata@… Thu, 18 Jul 2013 07:50:20 GMT attachment set https://svn.boost.org/trac10/ticket/8844 https://svn.boost.org/trac10/ticket/8844 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1.54.0-bind-static_assert.patch</span> </li> </ul> <p> A fix </p> Ticket Chris Stylianou <chris5287@…> Thu, 18 Jul 2013 20:19:35 GMT <link>https://svn.boost.org/trac10/ticket/8844#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8844#comment:1</guid> <description> <p> I'm also experiencing this warning, the attached 'boost-1.54.0-bind-static_assert.patch' does fix it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 11 Dec 2013 22:14:13 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8844#comment:2 https://svn.boost.org/trac10/ticket/8844#comment:2 <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> Applied in <a class="ext-link" href="https://github.com/boostorg/bind/commit/a6b17d900155d2a04f54ad18fd89197001f231ab"><span class="icon">​</span>https://github.com/boostorg/bind/commit/a6b17d900155d2a04f54ad18fd89197001f231ab</a> </p> Ticket