Boost C++ Libraries: Ticket #5790: call_traits::param_type generates const references for enums https://svn.boost.org/trac10/ticket/5790 <p> call_traits&lt;<a class="missing wiki">SomeEnum</a>&gt;::param_type currently evaluates to "const <a class="missing wiki">SomeEnum</a>&amp;" instead of "const <a class="missing wiki">SomeEnum</a>". </p> <p> Seems that since call_traits is using is_arithmetic to funnel down into ct_imp2&lt;T, true&gt;, we could also use is_enum to send us down the same path and get the desired behavior. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5790 Trac 1.4.3 defaultryan+boost@… Wed, 17 Aug 2011 05:02:42 GMT <link>https://svn.boost.org/trac10/ticket/5790#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5790#comment:1</guid> <description> <p> More specifically, change line 82 from </p> <pre class="wiki">::boost::is_arithmetic&lt;T&gt;::value </pre><p> to </p> <pre class="wiki">::boost::is_arithmetic&lt;T&gt;::value || ::boost::is_enum&lt;T&gt;::value </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 20 Aug 2011 16:04:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5790#comment:2 https://svn.boost.org/trac10/ticket/5790#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73953" title="Change call_traits to pass enum's by value. Fixes #5790.">[73953]</a>) Change call_traits to pass enum's by value. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5790" title="#5790: Bugs: call_traits::param_type generates const references for enums (closed: fixed)">#5790</a>. </p> Ticket anonymous Tue, 04 Sep 2012 10:12:26 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/5790#comment:3 https://svn.boost.org/trac10/ticket/5790#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Reopening because this hasn't been merged to release yet. </p> Ticket John Maddock Fri, 07 Sep 2012 08:49:18 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5790#comment:4 https://svn.boost.org/trac10/ticket/5790#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</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/80433" title="Merge changes from Trunk. Fixes #5790.">[80433]</a>) Merge changes from Trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5790" title="#5790: Bugs: call_traits::param_type generates const references for enums (closed: fixed)">#5790</a>. </p> Ticket