Fix a compile error
This commit is contained in:
parent
6594b2d090
commit
835adfb4ce
|
@ -47,7 +47,7 @@ bool Module::load()
|
||||||
|
|
||||||
for(const std::string& depName : m_dependencies) {
|
for(const std::string& depName : m_dependencies) {
|
||||||
if(depName == m_name)
|
if(depName == m_name)
|
||||||
stdext::throw_exception(stdext::format("cannot depend on itself"));
|
stdext::throw_exception("cannot depend on itself");
|
||||||
|
|
||||||
ModulePtr dep = g_modules.getModule(depName);
|
ModulePtr dep = g_modules.getModule(depName);
|
||||||
if(!dep)
|
if(!dep)
|
||||||
|
|
|
@ -81,6 +81,11 @@ std::string format(const std::string& format, const Args&... args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<>
|
||||||
|
inline std::string format(const std::string& format) {
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue