I have been learning about trivial and standard layout types. I think I understand the basics behind it, but there is still something I am missing. Pl ...
I have been learning about trivial and standard layout types. I think I understand the basics behind it, but there is still something I am missing. Pl ...
Why does this program compile on MSVC but not on GCC and Clang? godbolt According to [istream.iterator.cons]/6, the constructor must be trivial. Do ...
The standard says A trivially copyable class is a class: (1.1) that has at least one eligible copy constructor, move constructor, copy assignmen ...
I'm having a lot of trouble understanding why memcpy'ing non_copyable types is not allowed, or even if my code in the following is not allowed: If ...
When a class member cannot have a sensible meaning at the moment of construction, I don't initialize it. Obviously that only applies to POD types, you ...
I'm writing an Atom class, for types T are not trivially-copyable. I was wondering if my below implementation of load() and store() could cause a race ...
A class with all special functions defaulted except a non-trivial destructor is not trivially move or copy constructible. See https://godbolt.org/z/o8 ...
Cppreference states, regarding std::memcpy() (emphasis added): If the objects are potentially-overlapping or not TriviallyCopyable, the behavior o ...