I'm using std::type_index in a messaging system and I'm feeling dirty. Are there other options?
-
-
Those are good points, but my messages don't survive program termination and are contained in the application (i.e. they aren't sent to a server.)
-
It turns out I'll need to support shared libraries. I'll use a hash of typeid(T).name() cached with type_index unless there's an advantage of __PRETTY_FUNCTION__ over it.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.