Skip to content

Off-by-one error in container_device example? #183

Description

@pwiecz

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<std::string> with std::stringstream we can see that they show different behaviours:
https://godbolt.org/z/cfq5fM6M6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions