Fix double scope causing build error
This commit is contained in:
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
/.idea
|
||||||
|
/.cache
|
||||||
|
/.ccls-cache
|
||||||
|
/compile_commands.json
|
||||||
|
/cmake-build-debug
|
||||||
|
/build
|
@@ -258,7 +258,7 @@ namespace misc {
|
|||||||
std::vector<std::string> string_expand(const std::string& input, char delimiter = ' ');
|
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);
|
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::vector<std::string> result;
|
||||||
std::stringstream ss (input);
|
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();
|
return std::find(v.begin(), v.end(), x) != v.end();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user