feat/update_config #10
@ -43,7 +43,7 @@ Slice TrimLeft(Slice s, Slice cutset);
|
||||
Slice TrimRight(Slice s, Slice cutset);
|
||||
Slice Trim(Slice s, Slice cutset);
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
TrimLeft(Slice s, Pred pred = isspace)
|
||||
{
|
||||
@ -51,7 +51,7 @@ TrimLeft(Slice s, Pred pred = isspace)
|
||||
return s;
|
||||
}
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
TrimRight(Slice s, Pred pred = isspace)
|
||||
{
|
||||
@ -59,7 +59,7 @@ TrimRight(Slice s, Pred pred = isspace)
|
||||
return s;
|
||||
}
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
Trim(Slice s, Pred pred = isspace)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user