Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[class.temporary] The use of term "trivially copyable" may be wrong #5299

Open
frederick-vs-ja opened this issue Feb 17, 2022 · 0 comments
Open

Comments

@frederick-vs-ja
Copy link
Contributor

When determining whether temporary object is allowed to be created during passing or returning, triviality of assignment operators is ignored ([class.temporary]/3, so does Itanium C++ ABI), which is inconsistent with the definition of trivially copyable class in [class.prop]/1.
Perhaps we should replace the use of "trivially copyable" in [class.temporary]/(1.2) with a new term.

May be related to CWG2434.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant