Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslmf::InvokeResultDeductionFailed Struct Reference

#include <bslmf_invokeresult.h>

List of all members.

Public Member Functions

template<class t_TYPE >
 InvokeResultDeductionFailed (const t_TYPE &)

Detailed Description

When invoke_result cannot deduce the actual return type of a functor (in C++03 mode), it yields this type as a placeholder. The advantage of using this placeholder instead of a compilation failure (e.g., using a static assert) is that the return type of an INVOKE() operation is often discarded, so our failure to deduce the return type is often harmless. Since InvokeResultDeductionFailed is a return type, it must be convertible from the actual return type; this conversion is accomplished by means of a constructor that makes it convertible from any type.

See Component bslmf_invokeresult


Constructor & Destructor Documentation

template<class t_TYPE >
bslmf::InvokeResultDeductionFailed::InvokeResultDeductionFailed ( const t_TYPE &   )  [inline]

The documentation for this struct was generated from the following file: