forked from boostorg/beast
Fix basic_streambuf::capacity
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* Change implicit to default value in example
|
* Change implicit to default value in example
|
||||||
* Tidy up some declarations
|
* Tidy up some declarations
|
||||||
|
* Fix basic_streambuf::capacity
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -533,7 +533,7 @@ basic_streambuf<Allocator>::capacity() const
|
|||||||
{
|
{
|
||||||
auto pos = out_;
|
auto pos = out_;
|
||||||
if(pos == list_.end())
|
if(pos == list_.end())
|
||||||
return 0;
|
return in_size_;
|
||||||
auto n = pos->size() - out_pos_;
|
auto n = pos->size() - out_pos_;
|
||||||
while(++pos != list_.end())
|
while(++pos != list_.end())
|
||||||
n += pos->size();
|
n += pos->size();
|
||||||
|
Reference in New Issue
Block a user