alloc/raw/linear: explain why begin/end members aren't const

This commit is contained in:
Danny Robson 2018-09-22 12:40:13 +10:00
parent 2e0b51baa4
commit bc03b36ffc

View File

@ -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;
};
}