diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 16:51:03 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-11 16:51:03 +0100 |
commit | f0ecbea57a4d75905c4ee79608807187cd8f3e72 (patch) | |
tree | 04a399dc7d400aaa9443be19ce13fd97e5822f95 /src/crepe/Component.h | |
parent | d228d4b3856606ad4395723b2703759a0ebe9832 (diff) |
WIP
Diffstat (limited to 'src/crepe/Component.h')
-rw-r--r-- | src/crepe/Component.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h index eff5a58..47c5c34 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -32,9 +32,13 @@ protected: //! Only ComponentManager can create components friend class ComponentManager; - Component(const Component &) = delete; + // create snapshot + Component(const Component &) = default; + // restore snapshot + virtual Component & operator=(const Component &); + + // components are never moved Component(Component &&) = delete; - virtual Component & operator=(const Component &) = delete; virtual Component & operator=(Component &&) = delete; public: |