Opened 7 years ago

Last modified 6 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 Changed 6 years ago by anonymous

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 6 years ago by Daniel Walker (previous) (diff)

comment:2 Changed 6 years ago by Michel Morin

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