Skip to content

const stream objects #265

Description

@bd4

If a stream or stream_view object is const, it becomes useless, as no methods will be allowed. This came up in GENE where there is a helper class which has const methods that use a stream member variable, and because the methods are const, this becomes const and the stream member becomes const, and it breaks. It's not obvious what the correct change is here - should stream methods be allowed on const, or should GENE be changed to make those methods non-const.

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