Modify

Ticket #1310 (closed Bugs: fixed)

Opened 7 years ago

Last modified 4 years ago

[result_of] const-qualified function pointer doesn't work

Reported by: Shunsuke Sogame <pstade.mb@…> Owned by: dgregor
Milestone: Boost 1.36.0 Component: function
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

boost::result_of can't work with const-qualified function pointer.

typedef int (*pf_t)(int);
typedef boost::result_of<pf_t(int)>::type result1_t; // ok
typedef boost::result_of<pf_t const(int)>::type result2_t; // doesn't compile.

Attachments

Change History

comment:1 Changed 6 years ago by dgregor

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

(In [48620]) Fix result_of to work with const-qualified function pointers. Fixes #1310

comment:2 Changed 4 years ago by danieljames

(In [60289]) Merge various result_of changes.

  • [42234] Reduce header dependencies, from Shunsuke Sogame. Fixes #1535
  • [45256] result_of implementation that makes use of C++0x decltype, from Daniel Walker. Fixes #862.
  • [48620] Fix result_of to work with const-qualified function pointers. Fixes #1310
  • [60052] Remove use of deprecated config macro in result_of.
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.