BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf_convertiblevaluewrapper

Detailed Description

Outline

Purpose

Provide a wrapper class, convertible to a supplied value.

Classes

See also
bsltf_templatetestfacility

Description

This component provides a struct that holds an object of a template parameter type, and provides implicit conversions to, and from, that type. A bsltf::ConvertibleValueWrapper facilitates testing of function templates whose contract requires a type that is "convertible to the specified type". It also ensures that this uses up the one user-defined conversion in permitted in the conversion sequence, rather than accidentally relying on a built-in conversion such as type promotion.

Usage

This section illustrates intended use of this component.

Example 1: TBD