#ifndef OSGINTROSPECTION_TYPENAMEALIASPROXY_ #define OSGINTROSPECTION_TYPENAMEALIASPROXY_ #include #include #include #include namespace osgIntrospection { template struct TypeNameAliasProxy { TypeNameAliasProxy(const std::string &name) { Type *type = Reflection::getOrRegisterType(typeid(C)); if (std::find(type->aliases_.begin(), type->aliases_.end(), name) == type->aliases_.end()) type->aliases_.push_back(name); } }; } #endif