BloombergLP::bslfmt::FormatterSpecificationNumericValue_ArgVisitor::operator()

Throw format_error when visiting a boolean format argument.

Synopsis

Declared in <bslfmt_formatterspecificationnumericvalue.h>

void
operator()(bool value) const;

Description

This indicates visitation of a bsl::format argument of boolean type, usually resulting from a user error such as calling bsl::format("{:{}}", value, b) where b is bool.

Parameters

NameDescription
valueboolean argument that is not a valid nested numeric value