summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/throwerror.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/throwerror.h b/src/utils/throwerror.h
index 1766f517..9963022e 100644
--- a/src/utils/throwerror.h
+++ b/src/utils/throwerror.h
@@ -30,7 +30,7 @@ namespace utils
*
* @param errmsg error introduction string.
*/
- static void throwError(const std::string &errmsg)
+ inline void throwError(const std::string &errmsg)
{
LOG_ERROR(errmsg);
throw errmsg;
@@ -43,7 +43,7 @@ namespace utils
* @param T is the exception instance.
*/
template <class T>
- static void throwError(std::string errmsg, const T& e)
+ void throwError(std::string errmsg, const T &e)
{
errmsg += e.what();
throwError(errmsg);