Opened 15 years ago

Closed 14 years ago

Last modified 13 years ago

#1310 closed Bugs (fixed)

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

Reported by: Shunsuke Sogame <pstade.mb@…> Owned by: Douglas Gregor
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.

Change History (2)

comment:1 by Douglas Gregor, 14 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Daniel James, 13 years ago

(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.
Note: See TracTickets for help on using tickets.