BDE 4.14.0 Production release
|
Provide a wrapper class, convertible to a supplied value.
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.
This section illustrates intended use of this component.