C++ Self registering factory in library: No types registered in application
问题 I modified the factory pattern with self registering types from this blog post for my own needs. Instead of strings I use UUIDs (using boost.uuid ) to register & build my node sub-classes. The factory and corresponding node and node_* subclasses are part of a library. I link against that library (static library) in my client application and then want to use the library's factory::build() function to build objects based on the known UUIDs. The problem I am facing is that everything is working