From 3d5a7c7a0f09d93288161d405e862876949a52a8 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Mon, 27 Apr 2020 13:05:32 +0200
Subject: [PATCH] fix multiple definitions

---
 alib2aux/src/convert/common/converterCommon.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/alib2aux/src/convert/common/converterCommon.hpp b/alib2aux/src/convert/common/converterCommon.hpp
index f7008a0aaf..f18895e427 100644
--- a/alib2aux/src/convert/common/converterCommon.hpp
+++ b/alib2aux/src/convert/common/converterCommon.hpp
@@ -10,7 +10,7 @@
 
 namespace convert {
 
-auto replaceInplace = [] ( std::string & str, const std::string & what, const std::string & with ) {
+inline auto replaceInplace = [] ( std::string & str, const std::string & what, const std::string & with ) {
 	size_t index = 0;
 
 	while ( ( index = str.find ( what, index ) ) != std::string::npos ) {
@@ -19,7 +19,7 @@ auto replaceInplace = [] ( std::string & str, const std::string & what, const st
 	}
 };
 
-auto replace = [] ( std::string str, const std::string & what, const std::string & with ) {
+inline auto replace = [] ( std::string str, const std::string & what, const std::string & with ) {
 	replaceInplace ( str, what, with );
 	return str;
 };
-- 
GitLab