Skip to content

Commit 3e7bdc0

Browse files
authored
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.
1 parent f2f22df commit 3e7bdc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/osgPlugins/x/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace DX {
3838
*/
3939

4040
// Vector
41-
typedef struct {
41+
typedef struct Vector_struct {
4242
float x,y,z;
4343

4444
inline void normalize() {

0 commit comments

Comments
 (0)