Browse Source

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

Turo Lamminen 8 years ago
parent
commit
bf1aaf98f9
1 changed files with 7 additions and 0 deletions
  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