Original Post
Is there a way to do the thing in which you use static instances of derived classes to register the derived class with a factory that doesn't depend on undefined behavior regarding the order in which static variables are initialized?