Conditions for automatic generation of default/copy/move ctor and copy/move assignment operator?

后端 未结 3 1079
旧巷少年郎
旧巷少年郎 2020-11-22 03:57

I want to refresh my memory on the conditions under which a compiler typically auto generates a default constructor, copy constructor and assignment operator.

I reco

3条回答
  •  面向向阳花
    2020-11-22 04:43

    I've found the diagram below very useful.

    from Sticky Bits - Becoming a Rule of Zero Hero

提交回复
热议问题