Skip to content

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

@pwiecz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions