diff --git a/CMakeLists.txt b/CMakeLists.txt index b564f88..cbb100f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ FILE(GLOB BOT_SOURCE_FILES add_library(twbl STATIC ${BOT_SOURCE_FILES}) +target_compile_options(twbl PRIVATE -std=gnu++17) + include_directories(src) include(CTest) diff --git a/src/bots/sample.h b/src/bots/sample.h index de38f70..d498503 100644 --- a/src/bots/sample.h +++ b/src/bots/sample.h @@ -6,10 +6,13 @@ namespace TWBL { -class CSampleBot : CBaseBot +class CSampleBot : public CBaseBot { public: - using CBaseBot::CBaseBot; + CSampleBot(const CServerBotStateIn *pStateIn, CServerBotStateOut *pStateOut) : + CBaseBot(pStateIn, pStateOut) + { + } void Tick(); };