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

[basic.types]p2 comment in example says "scalar" where "trivially copyable" is meant #592

Closed
cubbimew opened this issue Dec 22, 2015 · 1 comment

Comments

@cubbimew
Copy link
Contributor

3.9[basic.types]p2 talks about trivially copyable types, but the accompanying example says, in a comment,

std::memcpy(&obj, buf, N); // at this point, each subobject of obj of scalar type
                           //  holds its original value

This should say "of trivially copyable type", just like the example in 3.9[basic.types]p3 says a few lines lower.

@cubbimew
Copy link
Contributor Author

Withdrawing; it not wrong.

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