]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Remove user defined constructors for Entity that are equivalent to the compiler gener...
authortahsmith <tsmith@saberastro.com>
Wed, 4 Mar 2015 01:07:09 +0000 (12:07 +1100)
committertahsmith <tsmith@saberastro.com>
Wed, 4 Mar 2015 01:07:09 +0000 (12:07 +1100)
entityx/Entity.h

index af2fafb18786ab3812e37cbc57fe587d972ed661..8dd3410538934dc3a1cc2dcfac848090f7154b16 100644 (file)
@@ -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.