Skip to content

slice_of internal iterators get invalidated on move #50

@ashtum

Description

@ashtum

Even a simple case like buffers::slice_of<buffers::const_buffer_pair> breaks on move, so we can't keep it as a member variable inside composed operations.

BufferSequence bs_;
iter_type begin_;
iter_type end_;
std::size_t len_ = 0; // length of bs_
std::size_t size_ = 0; // total bytes
std::size_t prefix_ = 0; // used prefix bytes
std::size_t suffix_ = 0; // used suffix bytes

Metadata

Metadata

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