2
0
Эх сурвалжийг харах

ASE: Add explicit default constructors and assignment operators to Material

Turo Lamminen 7 жил өмнө
parent
commit
024aade208
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 10 0
      code/ASEParser.h

+ 10 - 0
code/ASEParser.h

@@ -73,6 +73,16 @@ struct Material : public D3DS::Material
     , 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
     std::vector<Material> avSubMaterials;