Opened 11 years ago

Last modified 10 years ago

#6731 new Bugs

decltype-based boost::result_of does not conform to std::result_of

Reported by: Michel Morin Owned by: Daniel Walker
Milestone: To Be Determined Component: result_of
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

std::result_of is equivalent to

decltype(INVOKE(declval<Fn>(), declval<ArgTypes>()…))

and so it can deal with pointers to member data. Current implementation of decltype-based boost::result_of cannot deal with pointers to member data.

Change History (2)

comment:1 by anonymous, 10 years ago

The current implementation covers much of INVOKE (defined in 20.8.2.1), but the member function pointer case is handled by the old TR1 result of and the pointer to member data case is not handled all. Doing this properly will require some refactoring. Patches welcome. This is related to #4489.

  • Daniel Walker
Last edited 10 years ago by Daniel Walker (previous) (diff)

comment:2 by Michel Morin, 10 years ago

Component: utilityresult_of
Note: See TracTickets for help on using tickets.