gpderetta 1 day 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>)

1
monkeyelite 13 hours ago

Unfortunately 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.