Why change definition of Trivially Copyable in C++17 ?

50 views
Skip to first unread message

Thomas McLeod

unread,
Jun 7, 2018, 2:22:33 PM6/7/18
to ISO C++ Standard - Discussion

Why does trivial class have a new requirement that the class have "at least one non-deleted copy constructor, move constructor, copy assignment operator, or move assignment operator." This doesn't seem logical to me.

I'm sure there is a paper on this somewhere but I would not know how to find it.

Thomas McLeod

Language Lawyer

unread,
Jun 7, 2018, 2:32:50 PM6/7/18
to std-dis...@isocpp.org
On 07/06/18 21:22, Thomas McLeod wrote:
> I'm sure there is a paper on this somewhere but I would not know how to
> find it.

https://www.google.com/search?q=at+least++one+non-deleted+copy+constructor+site%3Awww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F
The first link, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0167r1.html, has "Additional note, November, 2014: See paper N4148."
https://isocpp.org/files/papers/n4148.html seem to be the right paper.

(should have sent the e-mail to the list)
Reply all
Reply to author
Forward
0 new messages