mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd: Fix token_last() iteration.
This commit is contained in:
parent
a79d1ab342
commit
05f297c756
1 changed files with 4 additions and 4 deletions
|
@ -65,11 +65,11 @@ ircd::token_last(const string_view &str,
|
|||
if(it == end(view))
|
||||
return str.empty()? str : throw std::out_of_range("token out of range");
|
||||
|
||||
auto ret(it);
|
||||
while(it != end(view))
|
||||
ret = it++;
|
||||
string_view ret(*it);
|
||||
for(++it; it != end(view); ++it)
|
||||
ret = *it;
|
||||
|
||||
return *ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
ircd::string_view
|
||||
|
|
Loading…
Reference in a new issue