Skip to content

const stream objects #265

@bd4

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.

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