So, I'm really intrigued by whether he can survive the aggressive optimization tactics used by GCC and clang.
Given the following example:
void* clean(void* pointer, std::size_t size) noexcept { return new(pointer) char[size]{}; } void doStuff() {
Can I trust him with the task of cleaning confidential data?
c ++ optimization memory
bit2shift
source share