Commit ca902ea7 authored by Dominik Charousset's avatar Dominik Charousset

Fix caf::starts_with

parent 655ea2fd
......@@ -131,7 +131,7 @@ void replace_all(std::string& str,
template<size_t S>
bool starts_with(const std::string& str, const char (&prefix)[S]) {
return str.compare(0, S, prefix);
return str.compare(0, S, prefix) == 0;
}
template <class T>
......
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