Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#1310 closed Bugs (fixed)

[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:


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 (0)

Change History (2)

comment:1 Changed 9 years ago by dgregor

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

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

comment:2 Changed 7 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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain dgregor.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.