finish(error_code&) is a BodyReader requirement (API Change)

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:19 -07:00
parent 64742a4183
commit b49b23ee83
10 changed files with 64 additions and 0 deletions
+16
View File
@@ -65,6 +65,11 @@ public:
return {{const_buffers_type{
body_.data(), body_.size()}, false}};
}
void
finish(error_code&)
{
}
};
};
@@ -115,6 +120,11 @@ public:
std::integral_constant<bool, isFinalEmpty>{});
}
void
finish(error_code&)
{
}
private:
boost::optional<std::pair<const_buffers_type, bool>>
get(
@@ -253,6 +263,12 @@ public:
return {{const_buffers_type{
body_.s_.data() + n_++, 1}, true}};
}
void
finish(error_code& ec)
{
body_.fc_.fail(ec);
}
};
};