Advantages of an empty class in C++

后端 未结 9 1629
夕颜
夕颜 2020-12-08 20:51

What could be the possible advantages/uses of having an empty class?

P.S: This question might sound trivial to some of you but it is just for learning purpose and h

9条回答
  •  庸人自扰
    2020-12-08 21:52

    Here is an interesting link with answers to why its allowed. You might find this helpful to find situations where it might be useful.

提交回复
热议问题