Skip to content

Commit 5355bbc

Browse files
leavesnightahornung
authored andcommitted
Minimal workaround for ColorOcTree in octovis with VS2012 (#167)
a minimal workaround for the ColorOcTree type register issue on the visual studio 2012 platform of windows 8 a redundant object definition to ensure VS2012 not to drop the the constructor of the member static class called StaticMemberInitializer, causing the ColorOcTree failing to register.
1 parent 6f981e9 commit 5355bbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

octovis/src/ViewerGui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include <octovis/ViewerGui.h>
3030
#include <octovis/ColorOcTreeDrawer.h>
3131
#include <octomap/MapCollection.h>
32+
//Dummy object definition to ensure VS2012 does not drop the StaticMemberInitializer, causing this tree failing to register.
33+
octomap::ColorOcTree colortreeTmp(0);
3234

3335

3436
#define _MAXRANGE_URG 5.1

0 commit comments

Comments
 (0)