From 73b83d67bb2866a801ccd04dcab404e11af320a1 Mon Sep 17 00:00:00 2001 From: zzh Date: Thu, 27 Apr 2017 19:53:35 +0900 Subject: [PATCH] a minimal workaround for the register issue 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. --- octovis/src/ViewerGui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/octovis/src/ViewerGui.cpp b/octovis/src/ViewerGui.cpp index b4442c41..dfa65c3c 100644 --- a/octovis/src/ViewerGui.cpp +++ b/octovis/src/ViewerGui.cpp @@ -29,6 +29,8 @@ #include #include #include +//Dummy object definition to ensure VS2012 does not drop the StaticMemberInitializer, causing this tree failing to register. +octomap::ColorOcTree colortreeTmp(0); #define _MAXRANGE_URG 5.1