Activate stat file

This commit is contained in:
Jean-Sébastien
2021-12-08 17:36:33 +01:00
parent 7207370426
commit 20c0035208
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ namespace ABACUS {
// Inexplicably missing string functions in standard library:
std::string replace(const std::string& str, const std::string& from, const std::string& to) {
inline std::string replace(const std::string& str, const std::string& from, const std::string& to) {
std::string repl = str;
size_t start_pos = repl.find(from);
if(start_pos < std::string::npos)
@@ -47,7 +47,7 @@ namespace ABACUS {
return repl;
}
std::string replace_all(const std::string& str, const std::string& from, const std::string& to) {
inline std::string replace_all(const std::string& str, const std::string& from, const std::string& to) {
std::string repl = str;
if(from.empty())
return repl;