Are array of pointers to different types possible in c++?

后端 未结 7 653
灰色年华
灰色年华 2020-12-18 03:46

Are array of pointers to different types possible in c++? with example please)

7条回答
  •  余生分开走
    2020-12-18 04:08

    An array of pointers to void has already been mentioned. If you want to make it practical and useful, consider using an array (or, better, vector) of boost::any.

提交回复
热议问题