BloombergLP::bdldfp::DecimalImpUtil::checkLiteral

checkLiteral overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Accept a double so valid unsuffixed floating literals are allowed.

static
void
checkLiteral(double value);
» more...

Generate an error if t is not a valid decimal floating-point literal.

template<class TYPE>
static
void
checkLiteral(TYPE const& t);
» more...

Parameters

NameDescription
valuedouble value from an unsuffixed floating literal
tvalue used to diagnose an invalid literal