Pārlūkot izejas kodu

3DS: Add explicit default constructors and assignment operators to Material

Turo Lamminen 7 gadi atpakaļ
vecāks
revīzija
9e7b21f83d
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      code/3DSHelper.h

+ 10 - 0
code/3DSHelper.h

@@ -387,6 +387,16 @@ struct Material
         mName = szTemp;
         mName = szTemp;
     }
     }
 
 
+
+    Material(const Material &other)            = default;
+    Material(Material &&other)                 = default;
+
+    Material &operator=(const Material &other) = default;
+    Material &operator=(Material &&other)      = default;
+
+    ~Material() {}
+
+
     //! Name of the material
     //! Name of the material
     std::string mName;
     std::string mName;
     //! Diffuse color of the material
     //! Diffuse color of the material