fix a compile warning C26478

This commit is contained in:
estshorter 2021-10-09 11:12:58 +09:00 committed by GitHub
parent 177c09f43d
commit dced71224d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ struct sequence<Head, Tail...>
invoke(location& loc)
{
const auto first = loc.iter();
const auto rslt = Head::invoke(loc);
auto rslt = Head::invoke(loc);
if(rslt.is_err())
{
loc.reset(first);