Skip to content

Commit

Permalink
Fix constructor inherit for macOS
Browse files Browse the repository at this point in the history
Set C++ standard to gnu++17
  • Loading branch information
ChillerDragon committed May 20, 2024
1 parent 8e046c7 commit 0361029
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 5 additions & 2 deletions src/bots/sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down

0 comments on commit 0361029

Please sign in to comment.