joyent/node — pull request #7696 by bnoordhuis (2014-05-27 21:38:37+00:00)
Title: src: replace CONTAINER_OF with type-safe function

Replace the CONTAINER_OF macro with a template function that is as
type-safe as a reinterpret_cast<> of an arbitrary pointer can be made.

/cc @indutny. This is right up your alley, I think.