Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • sizeof(someC.a) == sizeof(someA) Commented Nov 16, 2013 at 16:01
  • That's a pitfall, correct. It seams that the standard could have excluded the padding in the end and define that that padding shouldn't be copied. But I guess that would have probably introduced an unnecessary restriction. Commented Nov 16, 2013 at 21:43
  • 1
    I'm accepting the other answer since it presents an example that unconditionally breaks. Commented Nov 17, 2013 at 0:35