ParentFull threadpcwalton·autocxx is a companion library that provides what you're looking for. https://github.com/google/autocxxView on HN