From 9e005cb64bb001ad4fcddc4affb85f72701e968c Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 25 Sep 2020 16:11:19 +0200 Subject: [PATCH] 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 --- Ridges_3/test/Ridges_3/PolyhedralSurf.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Ridges_3/test/Ridges_3/PolyhedralSurf.h b/Ridges_3/test/Ridges_3/PolyhedralSurf.h index fb3a689ce6d..ad4297ba8d0 100644 --- a/Ridges_3/test/Ridges_3/PolyhedralSurf.h +++ b/Ridges_3/test/Ridges_3/PolyhedralSurf.h @@ -43,12 +43,13 @@ struct Wrappers_VFH:public CGAL::Polyhedron_items_3 { template < class Refs, class Traits > struct Face_wrapper { //typedef typename Traits::Vector_3 Vector_3; //all types needed by the facet... - typedef struct { - public: - typedef typename Traits::Vector_3 Vector_3; - } FGeomTraits; + struct FGeomTraits { + public: + typedef typename Traits::Vector_3 Vector_3; + }; + typedef FGeomTraits FGT; //custom type instantiated... - typedef My_facet < Refs, CGAL::Tag_true, FGeomTraits > Face; + typedef My_facet < Refs, CGAL::Tag_true, FGT > Face; }; };