hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Šimon Tóth

The C++11 std::addressof utility solves a very simple problem.

How do you obtain the actual address of an object when the built-in address-of operator can be overloaded?

Compiler Explorer link: compiler-explorer.com/z/PjqTPT

@simontoth what would be a use case of overloading the built-in address-of operator? I can't really think of anything off the top of my head....

@niq Proxy objects, returning the address of the proxied object.