src: Remove starts_with(const char*, const char*) overload

This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-25 00:09:53 +09:00
parent 17ccbae084
commit bfccab9b9f
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ inline bool starts_with(const std::string &a, const std::string &b) {
return starts_with(std::begin(a), std::end(a), std::begin(b), std::end(b)); return starts_with(std::begin(a), std::end(a), std::begin(b), std::end(b));
} }
inline bool starts_with(const char *a, const char *b) { inline bool starts_with(const StringRef &a, const StringRef &b) {
return starts_with(a, a + strlen(a), b, b + strlen(b)); return starts_with(std::begin(a), std::end(a), std::begin(b), std::end(b));
} }
struct CaseCmp { struct CaseCmp {