Skip to content

Better support for const buffers #1993

Closed
@nedrebo

Description

@nedrebo

The buffer_info class takes a void *. I propose to support const void *.

  • Removes need for const_cast when you have a const T * (only possible if you know memory is mutable)
  • Read only access of mutable memory will be supported by using std::as_const or a safe "to const" const_cast.

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