For debugging purposes, I want to print the values of template parameters.
For type template parameters, I can use typeid(T).name()
, which gives me (more or less) the name of the type T
as a string.
Is there a way to get a similar string (e.g. "&Parent::member
") for a pointer-to-member template parameter? I cannot use typeid
here, because the pointer is not a type.
The debugging string shall contain the name of the member as well as the type name of the parent.
Aucun commentaire:
Enregistrer un commentaire