You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//test code
#include
#include<vcg/complex/complex.h>
#include <wrap/io_trimesh/import_ply.h>
using namespace vcg;
class MyEdge;
class MyFace;
class MyVertex;
struct MyUsedTypes : public UsedTypes< Use::AsVertexType, Use::AsFaceType>{};
class MyVertex : public Vertex< MyUsedTypes, vertex::Coord3f, vertex::BitFlags >{};
class MyFace : public Face < MyUsedTypes, face::VertexRef, face::FFAdj, face::WedgeTexCoord2f, face::Mark, face::BitFlags > {};
class MyMesh : public tri::TriMesh< std::vector, std::vector >{};
int main() {
MyMesh m,tm;
tri::io::ImporterPLY::Open(m,"../../meshes/bunny10k_textured.ply");
std::cout << "Hello, World!" << std::endl;
return 0;
}
compile error :
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(163): note: see reference to class template instantiation 'vcg::Shot<S,RotationType>::ReferenceFrame' being compiled
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2805: binary 'operator ==' has too few parameters
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2805: binary 'operator !=' has too few parameters
vs2015 compile error; but vs2019 complile sucess;
The text was updated successfully, but these errors were encountered:
ver: vcglib-2023.12
//test code
#include
#include<vcg/complex/complex.h>
#include <wrap/io_trimesh/import_ply.h>
using namespace vcg;
class MyEdge;
class MyFace;
class MyVertex;
struct MyUsedTypes : public UsedTypes< Use::AsVertexType, Use::AsFaceType>{};
class MyVertex : public Vertex< MyUsedTypes, vertex::Coord3f, vertex::BitFlags >{};
class MyFace : public Face < MyUsedTypes, face::VertexRef, face::FFAdj, face::WedgeTexCoord2f, face::Mark, face::BitFlags > {};
class MyMesh : public tri::TriMesh< std::vector, std::vector >{};
int main() {
MyMesh m,tm;
tri::io::ImporterPLY::Open(m,"../../meshes/bunny10k_textured.ply");
std::cout << "Hello, World!" << std::endl;
}
compile error :
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(163): note: see reference to class template instantiation 'vcg::Shot<S,RotationType>::ReferenceFrame' being compiled
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2805: binary 'operator ==' has too few parameters
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2805: binary 'operator !=' has too few parameters
vs2015 compile error;
but vs2019 complile sucess;
The text was updated successfully, but these errors were encountered: