std::string.find_last_of() wants a string not a character as argument

This commit is contained in:
Axel Kohlmeyer
2020-06-29 23:26:01 -04:00
parent f958cacbb4
commit 911b95fdc9

View File

@ -549,9 +549,9 @@ bool utils::is_double(const std::string & str) {
std::string utils::path_basename(const std::string & path) { std::string utils::path_basename(const std::string & path) {
#if defined(_WIN32) #if defined(_WIN32)
size_t start = path.find_last_of('/\\'); size_t start = path.find_last_of("/\\");
#else #else
size_t start = path.find_last_of('/'); size_t start = path.find_last_of("/");
#endif #endif
if (start == std::string::npos) { if (start == std::string::npos) {