Bläddra i källkod

ASE: Add explicit default constructors and assignment operators to Material

Turo Lamminen 7 år sedan
förälder
incheckning
024aade208
1 ändrade filer med 10 tillägg och 0 borttagningar
  1. 10 0
      code/ASEParser.h

+ 10 - 0
code/ASEParser.h

@@ -73,6 +73,16 @@ struct Material : public D3DS::Material
     , bNeed (false)
     , bNeed (false)
     {}
     {}
 
 
+
+    Material(const Material &other)            = default;
+    Material(Material &&other)                 = default;
+
+    Material &operator=(const Material &other) = default;
+    Material &operator=(Material &&other)      = default;
+
+    ~Material() {}
+
+
     //! Contains all sub materials of this material
     //! Contains all sub materials of this material
     std::vector<Material> avSubMaterials;
     std::vector<Material> avSubMaterials;