Why would trivial copy/move contructibility depend on trivial destructibility?

前端 未结 0 1536
谎友^
谎友^ 2021-02-06 02:00

A class with all special functions defaulted except a non-trivial destructor is not trivially move or copy constructible. See https://godbolt.org/z/o83rPz for an example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题