Explorar o código

IFCImporter: Add explicit instantiation of log_prefix so IFCMaterial.cpp can see it

Turo Lamminen %!s(int64=8) %!d(string=hai) anos
pai
achega
bf1aaf98f9
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      code/IFCLoader.h

+ 7 - 0
code/IFCLoader.h

@@ -60,6 +60,13 @@ namespace Assimp    {
         class DB;
     }
 
+#ifndef _MSC_VER
+    // GCC and Clang need to see this explicit declaration to avoid warning
+    // MSVC complains about redeclaration even though this is just the
+    // declaration, not the definition
+    class IFCImporter;
+    template<> const std::string LogFunctions<IFCImporter>::log_prefix;
+#endif  // _MSC_VER
 
 // -------------------------------------------------------------------------------------------
 /** Load the IFC format, which is an open specification to describe building and construction