From 889325b496ec3e69f32a801598fc93fd5988e626 Mon Sep 17 00:00:00 2001 From: Conrad Poelman Date: Thu, 9 Apr 2020 03:19:28 -0400 Subject: [PATCH] Name unnamed typedef struct {...} to fix MSVC error Compile with latest MSVC 16.6.0 Preview Release, got error message: > osgPlugins\x\types.h(41,20): error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes (compiling source file ...3rdparty\OpenSceneGraph\src\osgPlugins\x\mesh.cpp) The fix was just to give it a name, which will never be used. I picked Vector_struct, feel free to improve. --- src/osgPlugins/x/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/x/types.h b/src/osgPlugins/x/types.h index 33768c530..48cbf2464 100644 --- a/src/osgPlugins/x/types.h +++ b/src/osgPlugins/x/types.h @@ -38,7 +38,7 @@ namespace DX { */ // Vector - typedef struct { + typedef struct Vector_struct { float x,y,z; inline void normalize() {