Use unique_ptr to manage SDL pointers

This commit is contained in:
Lexi / Zoe 2025-11-21 01:09:05 +01:00
parent 5c3e0e3a86
commit 4277f4c818
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
8 changed files with 128 additions and 129 deletions

View file

@ -31,13 +31,11 @@ export namespace core
instantiated_ = true;
}
// No copy operations
// No copy or move operations
Engine(const Engine&) = delete;
Engine& operator=(const Engine&) = delete;
// Default move operations
Engine(Engine&&) = default;
Engine& operator=(Engine&&) = default;
Engine(Engine&&) = delete;
Engine& operator=(Engine&&) = delete;
~Engine()
{