Fe₂🦀₃⋅H₂🦀 on Nostr: Obscure question: does C++ have a way to enforce POD semantics in a class? That is, ...
Obscure question: does C++ have a way to enforce POD semantics in a class? That is, enforce trivially/memcpyable. No pointers or remote parts. Ideally would cause compilation to fail if this is broken.
Published at
2023-06-21 15:56:47Event JSON
{
"id": "8cd1f85ac1d63efa1f99feb6db41421d379ef2061dbff54d7e1336ee1fa7d704",
"pubkey": "26976d1f3f3270311c86a59315751d66bd770aa35a929529271fca721afee1af",
"created_at": 1687363007,
"kind": 1,
"tags": [
[
"mostr",
"https://clubcyberia.co/objects/fbabcdb9-726e-42d6-b375-dc3e9cfb67e4"
]
],
"content": "Obscure question: does C++ have a way to enforce POD semantics in a class? That is, enforce trivially/memcpyable. No pointers or remote parts. Ideally would cause compilation to fail if this is broken.",
"sig": "699a8ec782aa9873a94db49bf5f41f6ddb133a4fbdb4033aed85fb6a32ee224fd305afec03f4d6a7aa03645733a1659c31d883db696b1c67d7033a1d5b04828c"
}