]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/str_list.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / common / str_list.cc
index 016155e98b7332262a30183f816802d1f042dc29..09e00b6702013fa466c0f5c35b5d58a4af6980ca 100644 (file)
@@ -16,7 +16,6 @@
 
 using std::string;
 using std::vector;
-using std::set;
 using std::list;
 using ceph::for_each_substr;
 
@@ -58,6 +57,8 @@ void get_str_vec(const string& str, vector<string>& str_vec)
 vector<string> get_str_vec(const string& str, const char *delims)
 {
   vector<string> result;
-  get_str_vec(str, delims, result);
+  for_each_substr(str, delims, [&result] (auto token) {
+      result.emplace_back(token.begin(), token.end());
+    });
   return result;
 }