I was wondering whether a design pattern or idiom exists to automatically register a class type. Or simpler, can I force a method to get called on a class by simply extendin
Usually I do this with a macro.
Unit test frameworks often employ the technique for registering the tests, e.g. GoogleTest