Skip to content

Commit e997eb9

Browse files
committed
change default template argument for splitString
1 parent 7ef1902 commit e997eb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/utils.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <type_traits>
3636
#include <vector>
3737
#include <cstring>
38-
#include <list>
3938

4039
struct SelectMapKeys {
4140
template<class Pair>
@@ -404,7 +403,7 @@ static inline T* empty_if_null(T* p)
404403
* @param sep The separator
405404
* @return The list of separate strings (including empty ones). The whole input string if no separator found.
406405
*/
407-
template<template<class ...> class T = std::list>
406+
template<template<class ...> class T = std::vector>
408407
T<std::string> splitString(const std::string& str, char sep)
409408
{
410409
if (std::strchr(str.c_str(), sep) == nullptr)

0 commit comments

Comments
 (0)