Skip to content

make_buffer(boost::span<char>) returns a const_buffer #147

@anarthal

Description

@anarthal

It should return a mutable_buffer. This works for std::span because there's an explicit overload (I'd say this should be handled by the generic function taking a mutable_contiguous_range). I'd attempt something like

template<detail::mutable_contiguous_range T>
[[nodiscard]]
mutable_buffer
make_buffer(T&& data) noexcept;

And remove all the vector, array, string and span overloads, as these should already satisfy mutable_contiguous_range.

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