We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc4af9 commit 1c5714bCopy full SHA for 1c5714b
cpp/pod.cpp
@@ -275,6 +275,11 @@ int main() {
275
};
276
static_assert(!std::is_pod<NotPod>(), "");
277
278
+ // default initialization is affected by PODness: https://en.cppreference.com/w/cpp/language/default_initialization
279
+ // TODO example
280
+ {
281
+ }
282
+
283
// __attribute__((packed)) only works for POD, and is ignored for non-POD, and emits a warning
284
// https://stackoverflow.com/questions/35152877/ignoring-packed-attribute-because-of-unpacked-non-pod-field/52986680#52986680
285
{
0 commit comments