Quick question about MemoryBlock::getData() signature

#1

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