Commit 3d5a7c7a authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

fix multiple definitions

parent 5cce7e7b
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment