Fixed build error.

This commit is contained in:
yhirose 2015-06-12 15:27:55 -04:00
parent d93682dc56
commit 927ecc5c37

View File

@ -454,7 +454,7 @@ TEST_CASE("Calculator test with AST", "[general]")
); );
const int kTagNumber = 0; const int kTagNumber = 0;
parser.enable_ast({ { "NUMBER", kTagNumber } }); parser.enable_ast(true, { { "NUMBER", kTagNumber } });
function<long (const Ast&)> eval = [&](const Ast& ast) { function<long (const Ast&)> eval = [&](const Ast& ast) {
if (ast.tag == kTagNumber) { if (ast.tag == kTagNumber) {