fix msvc error C7626 with c++20

error C7626: unnamed class used in typedef name cannot declare members
other than non-static data members, member enumerations, or member classes
This commit is contained in:
Jane Tournois 2020-09-25 16:11:19 +02:00
parent 9c955869c7
commit 9e005cb64b
1 changed files with 6 additions and 5 deletions

View File

@ -43,12 +43,13 @@ struct Wrappers_VFH:public CGAL::Polyhedron_items_3 {
template < class Refs, class Traits > struct Face_wrapper { template < class Refs, class Traits > struct Face_wrapper {
//typedef typename Traits::Vector_3 Vector_3; //typedef typename Traits::Vector_3 Vector_3;
//all types needed by the facet... //all types needed by the facet...
typedef struct { struct FGeomTraits {
public: public:
typedef typename Traits::Vector_3 Vector_3; typedef typename Traits::Vector_3 Vector_3;
} FGeomTraits; };
typedef FGeomTraits FGT;
//custom type instantiated... //custom type instantiated...
typedef My_facet < Refs, CGAL::Tag_true, FGeomTraits > Face; typedef My_facet < Refs, CGAL::Tag_true, FGT > Face;
}; };
}; };