From 835adfb4ce308d70ab4337dda15cb6d149e11bca Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 26 Jan 2013 15:17:32 -0200 Subject: [PATCH] Fix a compile error --- src/framework/core/module.cpp | 2 +- src/framework/stdext/format.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/framework/core/module.cpp b/src/framework/core/module.cpp index 115d9111..5f526dbb 100644 --- a/src/framework/core/module.cpp +++ b/src/framework/core/module.cpp @@ -47,7 +47,7 @@ bool Module::load() for(const std::string& depName : m_dependencies) { 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); if(!dep) diff --git a/src/framework/stdext/format.h b/src/framework/stdext/format.h index abc077cb..63340008 100644 --- a/src/framework/stdext/format.h +++ b/src/framework/stdext/format.h @@ -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