C++ Reflection issues