Skip to content

Commit 1c5714b

Browse files
committed
pod
1 parent 6cc4af9 commit 1c5714b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/pod.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,11 @@ int main() {
275275
};
276276
static_assert(!std::is_pod<NotPod>(), "");
277277

278+
// default initialization is affected by PODness: https://en.cppreference.com/w/cpp/language/default_initialization
279+
// TODO example
280+
{
281+
}
282+
278283
// __attribute__((packed)) only works for POD, and is ignored for non-POD, and emits a warning
279284
// https://stackoverflow.com/questions/35152877/ignoring-packed-attribute-because-of-unpacked-non-pod-field/52986680#52986680
280285
{

0 commit comments

Comments
 (0)