diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-10 20:10:58 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-10 20:10:58 +0100 |
commit | 8ed0c3f425b02d4f064c455270288a6c4a359109 (patch) | |
tree | c928eb4ca6ff61bc7c86888a35afc7d67bdef39c /src/crepe/manager/SaveManager.h | |
parent | 4414fe5079b44d5bbcbba89bb1e71ce01b949226 (diff) |
use opaque type instead of forward declared DB for unique_ptr in SaveManager
Diffstat (limited to 'src/crepe/manager/SaveManager.h')
-rw-r--r-- | src/crepe/manager/SaveManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/manager/SaveManager.h b/src/crepe/manager/SaveManager.h index 1b55a22..27e625c 100644 --- a/src/crepe/manager/SaveManager.h +++ b/src/crepe/manager/SaveManager.h @@ -1,6 +1,7 @@ #pragma once #include <memory> +#include <functional> #include "../ValueBroker.h" @@ -96,7 +97,7 @@ protected: virtual DB & get_db(); private: //! Database - std::unique_ptr<DB> db = nullptr; + std::unique_ptr<void, std::function<void(void*)>> db = nullptr; }; } // namespace crepe |