Get typedef of current class

后端 未结 2 1045
醉梦人生
醉梦人生 2021-01-03 04:56

I\'m currently using boost::intrusive_ptr together with my GUI classes. Although this is more or less a convenience question, is there a proper way to get the typename of th

相关标签:
2条回答
  • 2021-01-03 05:07

    Hmm, one idea I have is to call constructor and typename on this pointer... Another way could be to create a template metaprogram for creating classes, which will do the typedefs as well.

    0 讨论(0)
  • 2021-01-03 05:12

    No, that's not possible to do in C++.

    0 讨论(0)
提交回复
热议问题