BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslmf::InvokeResultDeductionFailed Struct Reference

#include <bslmf_invokeresult.h>

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 bslmf_invokeresult

Public Member Functions

template<class t_TYPE >
 InvokeResultDeductionFailed (const t_TYPE &)
 

Constructor & Destructor Documentation

◆ InvokeResultDeductionFailed()

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

Convert from an arbitrary type. The actual argument value is discarded.


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