Const constructor

后端 未结 1 1399
太阳男子
太阳男子 2021-01-14 08:55

Is it possible in C++ to achieve something like a constructor that is only allowed to create const objects?

I am thinking of making a decorator class to

1条回答
提交回复
热议问题