Fix double scope causing build error

This commit is contained in:
2025-05-28 14:54:01 -04:00
parent 4652a36348
commit 391dcd32ad
2 changed files with 8 additions and 2 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
/.idea
/.cache
/.ccls-cache
/compile_commands.json
/cmake-build-debug
/build

View File

@@ -258,7 +258,7 @@ namespace misc {
std::vector<std::string> string_expand(const std::string& input, char delimiter = ' ');
bool string_matches(const std::string& x, const std::vector<std::string>& v);
std::vector<std::string> misc::string_expand(const std::string& input, char delimiter)
std::vector<std::string> string_expand(const std::string& input, char delimiter)
{
std::vector<std::string> result;
std::stringstream ss (input);
@@ -271,7 +271,7 @@ namespace misc {
}
auto misc::string_matches(const std::string &x, const std::vector<std::string> &v) -> bool {
auto string_matches(const std::string &x, const std::vector<std::string> &v) -> bool {
return std::find(v.begin(), v.end(), x) != v.end();