An aggregate is an array or a class with
— no user-provided, explicit, or inherited constructors,
— no private or protected non-static data members,
— no virtual functions, and
— no virtual, private, or protected base classes.
aggregate라고 말할 수 있으면 struct, 아니면 class
꼭 어째야 한다는 아니고 그냥 개인적인 경계선이 있어야 고민할 필요가 없어져서
댓글 0