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

Explain POD and byte array manipulations #41

Merged
merged 26 commits into from
Jul 9, 2019
Merged

Explain POD and byte array manipulations #41

merged 26 commits into from
Jul 9, 2019

Conversation

km45
Copy link
Collaborator

@km45 km45 commented Jul 7, 2019

メモリレイアウトという章を新設して以下の内容を追加します。

@km45 km45 requested review from rinatz and cpmrph July 7, 2019 15:53
docs/ch12-03-plain-old-data-api-compatibility.md Outdated Show resolved Hide resolved
docs/ch12-02-plain-old-data.md Outdated Show resolved Hide resolved
docs/ch12-02-plain-old-data.md Outdated Show resolved Hide resolved
km45 added 4 commits July 9, 2019 01:36
#41 (comment)

The struct, which has multiple access specifiers for members and
all of them (including the implicit specifier) are same, is POD.

e.g.) below struct is POD
struct Hoge {
    int x;  // implicit public
 public:
    int y;  // explicit public
};

c.f.) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf#chapter.9
> 7 A standard-layout class is a class that:
> — has the same access control (Clause 11) for all non-static data members,
@km45 km45 merged commit 1703747 into master Jul 9, 2019
@km45 km45 deleted the feature/pod branch July 9, 2019 04:40
@yumetodo yumetodo mentioned this pull request Nov 23, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants