BloombergLP::bdlar::SymbolicConverter::convert

Convert the value of the specified rhs type-erased object to the specified (modifiable) lhs type-erased object.

Synopsis

Declared in <bdlar_symbolicconverter.h>

static
int
convert(
    AnyRef lhs,
    AnyConstRef rhs,
    std::ostream& errorStream);

Description

Write diagnostic messages to the specified errorStream on failure. Return 0 on success and a non-zero value otherwise.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
lhsdestination type-erased object to receive the converted value
rhssource type-erased object to convert from
errorStreamstream for diagnostic messages