Open Junkai-Liu opened 3 years ago
i use void operator=(const MeshData& d) { m_Vertices = std::move(d.m_Vertices); m_Normals = std::move(d.m_Normals); m_TextureCoords = std::move(d.m_TextureCoords); m_Colors = std::move(d.m_Colors); m_FaceIndicesVertices = std::move(d.m_FaceIndicesVertices); m_FaceIndicesNormals = std::move(d.m_FaceIndicesNormals); m_FaceIndicesTextureCoords = std::move(d.m_FaceIndicesTextureCoords); m_FaceIndicesColors = std::move(d.m_FaceIndicesColors); m_materialFile = std::move(d.m_materialFile); m_indicesByMaterial = std::move(d.m_indicesByMaterial); m_indicesByGroup = std::move(d.m_indicesByGroup); }
When I complie under VS2015, it occurs error: e:\bundlefusion\bundlefusion\external\mlib\include\core-mesh\meshdata.cpp(575): error C2280: “ml::MeshData &ml::MeshData::operator =(const ml::MeshData &)”: attempting to reference a deleted function
I refer to the meshdata.cpp and can't find operator =(const ml::MeshData &) definition or declaration. there only exists operator =(const ml::MeshData &&),I suppose maybe this lead to the problem, but when i overload operator =which input parameter is const ml::MeshData &. it doesn't work.
my mlib version is up to date .How can I fix this problem.?