boostorg / boostorg/iostreams

Off-by-one error in container_device example?

Open
#183 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
48
Forks
124
PR merge metrics
No merged PRs in 30d

Description

I suspect that line https://github.com/boostorg/iostreams/blob/develop/example/container_device.hpp#L135 should not contain the "- 1"
When I compare behaviour of stream based on `container_device` with `std::stringstream` we can see that they show different behaviours:
https://godbolt.org/z/cfq5fM6M6

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.