From a575274983bdac4fff88e0746d3be41ad4fd684e Mon Sep 17 00:00:00 2001 From: Dana Burkart Date: Wed, 20 Dec 2023 10:03:09 -0800 Subject: [PATCH] Explicitly move to C++17 --- Makefile.shared | 2 +- src/AST/Validation/Test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.shared b/Makefile.shared index 78a1658..35cc206 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -11,7 +11,7 @@ MAKE = make CXX ?= clang++ -DYYDEBUG=1 CINCLUDES = -I$(BASE)/gen/ -I$(BASE)/src/ -I$(BASE)/src/AST -I$(BASE)/src/Server -CFLAGS += $(CINCLUDES) -std=c++11 -fPIC -Wno-deprecated-register -DPLATFORM=\"$(ARCH)-$(PLATFORM)\" -Werror -Wall +CFLAGS += $(CINCLUDES) -std=c++17 -fPIC -Wno-deprecated-register -DPLATFORM=\"$(ARCH)-$(PLATFORM)\" -Werror -Wall ifeq ($(PLATFORM), Darwin) CFLAGS += -mmacosx-version-min=10.9 diff --git a/src/AST/Validation/Test.cc b/src/AST/Validation/Test.cc index 264b3ed..aea31a0 100644 --- a/src/AST/Validation/Test.cc +++ b/src/AST/Validation/Test.cc @@ -58,7 +58,7 @@ bool Test::validate(const ASTNode *node) { return true; } - return (this->_validation_fn_map[test->value()])(test); + return (this->*_validation_fn_map[test->value()])(test); } std::string Test::usage(const ASTNode *node) {