rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.11k stars 429 forks source link

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

Open Brynnvincible opened 1 year ago

Brynnvincible commented 1 year ago

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 commented 1 year ago

this project seems dead. so sad.