We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef1902 commit e997eb9Copy full SHA for e997eb9
lib/utils.h
@@ -35,7 +35,6 @@
35
#include <type_traits>
36
#include <vector>
37
#include <cstring>
38
-#include <list>
39
40
struct SelectMapKeys {
41
template<class Pair>
@@ -404,7 +403,7 @@ static inline T* empty_if_null(T* p)
404
403
* @param sep The separator
405
* @return The list of separate strings (including empty ones). The whole input string if no separator found.
406
*/
407
-template<template<class ...> class T = std::list>
+template<template<class ...> class T = std::vector>
408
T<std::string> splitString(const std::string& str, char sep)
409
{
410
if (std::strchr(str.c_str(), sep) == nullptr)
0 commit comments