Opened 12 years ago

Last modified 10 years ago

#4489 new Feature Requests

References to function object types — at Version 3

Reported by: Christopher Schmidt Owned by: Douglas Gregor
Milestone: To Be Determined Component: result_of
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

The current implementation of boost::result_of doesn't permit Fn in boost::result_of<Fn(Args...)> to be a reference to a class type. I would like to see that changed. Allowing reference-qualified function object types would be in useful with c++11's explicit reference qualification of member functions (n3090 / 13.3.1/4), and this change would bring boost::result_of more in line with c++11's std::result_of, which does allow "reference[s] to function object type[s]" (n3090 / 20.7.6.6)

Change History (3)

comment:1 by Christopher Schmidt, 12 years ago

Owner: changed from No-Maintainer to Douglas Gregor

comment:2 by Christopher Schmidt, 12 years ago

"The current implementation of boost::result_of permits Fn in boost::result_of<Fn(Args...)>"...

oh, there is a mistake in there. Of course I meant that the current implementation of boost::result_of does not permit Fn in boost::result_of<Fn(Args...)>"...

comment:3 by viboes, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.