Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get the type of a template? #356

Open
Brynnvincible opened this issue May 4, 2023 · 1 comment
Open

Is it possible to get the type of a template? #356

Brynnvincible opened this issue May 4, 2023 · 1 comment

Comments

@Brynnvincible
Copy link

If I have a template class:
template <class T> class Foo

I want to find if some rttr::type is any type that uses this template (for any T). Is there any way I can do this?

The only way I've found is to do:
strstr(type.get_name().data(), "Foo") != 0

I wanted to know if there is a cleaner/better way to do it.

@imagebreaker
Copy link

this project seems dead. so sad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants