Use static_assert instead of LATTEST

Fixes bug #10928
This commit is contained in:
Jean-Marc Lasgouttes 2017-12-14 16:22:46 +01:00
parent 8eb736b23b
commit 4f3734f024

View File

@ -1142,8 +1142,9 @@ bool TextClass::readCiteEngine(Lexer & lexrc)
int TextClass::readCiteEngineType(Lexer & lexrc) const
{
LATTEST(ENGINE_TYPE_DEFAULT ==
(ENGINE_TYPE_AUTHORYEAR | ENGINE_TYPE_NUMERICAL));
static_assert(ENGINE_TYPE_DEFAULT ==
(ENGINE_TYPE_AUTHORYEAR | ENGINE_TYPE_NUMERICAL),
"Incorrect default engine type");
if (!lexrc.next()) {
lexrc.printError("No cite engine type given for token: `$$Token'.");
return ENGINE_TYPE_DEFAULT;