Skip to content
Snippets Groups Projects
Commit 3d5a7c7a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix multiple definitions

parent 5cce7e7b
No related branches found
No related tags found
1 merge request!138Merge jt
Pipeline #76254 canceled
......@@ -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;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment