declaring a const instance of a class

后端 未结 4 787
面向向阳花
面向向阳花 2020-12-08 19:11

Let\'s say I have a class defined as follows:

class foo{};

now, this is perfectly acceptable;

foo f;

how

4条回答
  •  囚心锁ツ
    2020-12-08 19:49

    Raising an error in the situation of an empty class is a known problem, and reported as issue #253.

提交回复
热议问题