Quick question about MemoryBlock::getData() signature

void* getData() const noexcept { return data; }

As it provides a way to modify the MemoryBlock’s data, should it really be marked as const?
shouldn’t it rather return a const void* ?

1 Like