[Boost-bugs] [Boost C++ Libraries] #5790: call_traits::param_type generates const references for enums

Subject: [Boost-bugs] [Boost C++ Libraries] #5790: call_traits::param_type generates const references for enums
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-17 03:54:24


#5790: call_traits::param_type generates const references for enums
-----------------------------------------+----------------------------------
 Reporter: defaultryan+boost@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: call_traits
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: param_type enum is_enum |
-----------------------------------------+----------------------------------
 call_traits<SomeEnum>::param_type currently evaluates to "const SomeEnum&"
 instead of "const SomeEnum".

 Seems that since call_traits is using is_arithmetic to funnel down into
 ct_imp2<T, true>, we could also use is_enum to send us down the same path
 and get the desired behavior.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5790>
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