forked from boostorg/beast
Fix basic_streambuf::capacity
This commit is contained in:
1 parent
0eb0e485c3
commit
c9cd171c19
2 files changed
+2
-1
No files matched your search
@@ -533,7 +533,7 @@ basic_streambuf<Allocator>::capacity() const
|
||||
{
|
||||
auto pos = out_;
|
||||
if(pos == list_.end())
|
||||
return 0;
|
||||
return in_size_;
|
||||
auto n = pos->size() - out_pos_;
|
||||
while(++pos != list_.end())
|
||||
n += pos->size();
|
||||
|
||||
Reference in new issue
Block a user