- CHECK(align != Align::PAD_AFTER_SIGN)
- << errorStr("'='alignment only allowed on numbers");
- CHECK(sign == Sign::DEFAULT)
- << errorStr("sign specifier only allowed on numbers");
- CHECK(!basePrefix)
- << errorStr("base prefix ('#') specifier only allowed on integers");
- CHECK(!thousandsSeparator)
- << errorStr("thousands separator (',') only allowed on integers");
+ enforce(align != Align::PAD_AFTER_SIGN,
+ "'='alignment only allowed on numbers");
+ enforce(sign == Sign::DEFAULT,
+ "sign specifier only allowed on numbers");
+ enforce(!basePrefix,
+ "base prefix ('#') specifier only allowed on integers");
+ enforce(!thousandsSeparator,
+ "thousands separator (',') only allowed on integers");