alloc/raw/linear: explain why begin/end members aren't const
This commit is contained in:
parent
2e0b51baa4
commit
bc03b36ffc
@ -99,8 +99,11 @@ namespace cruft::alloc::raw {
|
||||
size_t remain (void) const;
|
||||
|
||||
protected:
|
||||
// The begin and end iterators should be constant but that interferes
|
||||
// with move operators so we need to leave them mutable.
|
||||
std::byte *m_begin;
|
||||
std::byte *m_end;
|
||||
|
||||
std::byte *m_cursor;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user