浏览代码

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

Turo Lamminen 7 年之前
父节点
当前提交
9e7b21f83d
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      code/3DSHelper.h

+ 10 - 0
code/3DSHelper.h

@@ -387,6 +387,16 @@ struct Material
         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
     std::string mName;
     //! Diffuse color of the material