3 ms·
> Imagine if C++ structs were required to be pod and classes were not. Then you could always know that a struct can be trivially allocated/deallocated etc. sta
by gpderetta 1y ago
> Imagine if C++ structs were required to be pod and classes were not. Then you could always know that a struct can be trivially allocated/deallocated etc.
static_assert(is_trivial_v<T>)
- monkeyelite 1y agoUnfortunately other people aren’t writing simple C structs they are using the full feature set of C++ and I have to use their code. So no this doesn’t solve C++ complexity including the initialization problem.