The hidden detail behind std::addressof in C++
In c++, even something like &obj is not always what it seems.
Normally, when we write:
struct Resource {
int data = 42;
};
int main() {
Resource r;
auto h = &r;
std::cout << h << '\n'
sigsegv.hashnode.dev3 min read