I'm working on a side project where I'm also learning modern C++. As a part of the project I've created a static type registry class that I'm using for associating type names with types, and for instantiating types from type names. It's part of my serialization logic.<p>It's not big, but it seems to do what I need it to do, currently.<p>Can someone with a deeper C++ knowledge take a quick look at it, and see if there are any obvious mistakes in my current approach to this problem?<p>https://github.com/bjaastad/simple-static-type-registry-cpp/blob/master/simplestatictyperegistry.hpp
Link to the code:<p><a href="https://github.com/bjaastad/simple-static-type-registry-cpp/blob/master/simplestatictyperegistry.hpp" rel="nofollow">https://github.com/bjaastad/simple-static-type-registry-cpp/...</a>