Use unique_ptr to manage SDL pointers
This commit is contained in:
parent
5c3e0e3a86
commit
4277f4c818
8 changed files with 128 additions and 129 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue