forked from boostorg/beast
Clear error codes idiomatically
This commit is contained in:
1 parent
9ea70bfbe5
commit
944b5dcda7
29 files changed
+118
-112
No files matched your search
@@ -387,7 +387,7 @@ do_parse(FwdIt it, FwdIt last, error_code& ec)
|
||||
loop:
|
||||
if(it == last)
|
||||
{
|
||||
ec.assign(0, ec.category());
|
||||
ec = {};
|
||||
return it;
|
||||
}
|
||||
// BWS
|
||||
|
||||
Reference in new issue
Block a user