Get typedef of current class

后端 未结 2 1063
醉梦人生
醉梦人生 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.

提交回复
热议问题