From: Mikko Rasa Date: Sat, 29 Oct 2022 18:46:28 +0000 (+0300) Subject: Put Director's destructor in the .cpp file X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=91e5d4366b857f2441abe7c9a61b6154bd23ea3f;p=libs%2Fgame.git Put Director's destructor in the .cpp file --- diff --git a/source/game/director.cpp b/source/game/director.cpp index 96bd143..b06dff4 100644 --- a/source/game/director.cpp +++ b/source/game/director.cpp @@ -12,6 +12,10 @@ Director::Director(DataFile::Collection &r): event_source(event_bus) { } +// Hide ~unique_ptr from the header +Director::~Director() +{ } + Stage &Director::create_stage() { stages.emplace_back(std::make_unique(std::ref(resources))); diff --git a/source/game/director.h b/source/game/director.h index 05be9f7..de19185 100644 --- a/source/game/director.h +++ b/source/game/director.h @@ -33,6 +33,7 @@ private: public: Director(DataFile::Collection &); + ~Director(); DataFile::Collection &get_resources() const { return resources; } EventBus &get_event_bus() { return event_bus; }