get template parameter name and type with Boost demangle

Have you ever tied to get the type of a variable by its name? for instance “int”  or “string“?

The following code snippet shows how to use boost demangle to get the type:


Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Notify of