Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-10 08:44:45

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

Do you have a specific scenario in mind?

Boost list run by bdawes at, gregod at, cpdaniel at, john at