
10 Jul
2006
10 Jul
'06
12:44 p.m.
Matt Calabrese wrote:
In the case that a function object is written where certain arguments may yield an ambiguous function call, how should the function object's result template be defined?
If the function object advertises a return type via the result_type typedef, or if the function object is a function pointer or another entity with a fixed return type, result_of returns that type. Otherwise, if a particular argument list results in an ill-formed expression, the application of result_of on that argument list is also ill-formed. Do you have a specific scenario in mind?