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

This commit is contained in:
Turo Lamminen
2017-10-05 10:51:48 +03:00
parent 1ef3b0f3f3
commit bf1aaf98f9

View File

@@ -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