0
0
Fork 0
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:
Jason Volk 2017-04-04 22:12:32 -07:00
parent a79d1ab342
commit 05f297c756

View file

@ -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