aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortahsmith <tsmith@saberastro.com>2015-03-04 12:07:09 +1100
committertahsmith <tsmith@saberastro.com>2015-03-04 12:07:09 +1100
commit1fe3f5d55dcfd4523d357b72716ee9c8bc9f8159 (patch)
tree1b84b78677af512dfbb88f04a72b8cfd9143f44f
parentb8f14f4f43209683a68e20c56917447ed9bd0a12 (diff)
Remove user defined constructors for Entity that are equivalent to the compiler generated ones.
-rw-r--r--entityx/Entity.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h
index af2fafb..8dd3410 100644
--- a/entityx/Entity.h
+++ b/entityx/Entity.h
@@ -80,15 +80,10 @@ public:
*/
static const Id INVALID;
- Entity() {}
+ Entity() = default;
Entity(EntityManager *manager, Entity::Id id) : manager_(manager), id_(id) {}
- Entity(const Entity &other) : manager_(other.manager_), id_(other.id_) {}
-
- Entity &operator = (const Entity &other) {
- manager_ = other.manager_;
- id_ = other.id_;
- return *this;
- }
+ Entity(const Entity &other) = default;
+ Entity &operator = (const Entity &other) = default;
/**
* Check if Entity handle is invalid.