Modify

Ticket #5790 (closed Bugs: fixed)

Opened 3 years ago

Last modified 20 months ago

call_traits::param_type generates const references for enums

Reported by: defaultryan+boost@… Owned by: johnmaddock
Milestone: To Be Determined Component: call_traits
Version: Boost 1.47.0 Severity: Problem
Keywords: param_type enum is_enum Cc:

Description

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.

Attachments

Change History

comment:1 Changed 3 years ago by defaultryan+boost@…

More specifically, change line 82 from

::boost::is_arithmetic<T>::value

to

::boost::is_arithmetic<T>::value || ::boost::is_enum<T>::value

comment:2 Changed 3 years ago by johnmaddock

  • Status changed from new to closed
  • Resolution set to fixed

(In [73953]) Change call_traits to pass enum's by value. Fixes #5790.

comment:3 Changed 20 months ago by anonymous

  • Status changed from closed to reopened
  • Resolution fixed deleted

Reopening because this hasn't been merged to release yet.

comment:4 Changed 20 months ago by johnmaddock

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [80433]) Merge changes from Trunk. Fixes #5790.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.