__traits isCopyable vs isPOD
Paul Backus
snarwin at gmail.com
Mon Nov 28 22:59:13 UTC 2022
On Monday, 28 November 2022 at 20:58:43 UTC, Per Nordlöw wrote:
> For which types `T` does
>
> ```d
> __traits(isCopyable, T)
> ```
>
> differ from
>
> ```d
> __traits(isPOD, T)
> ```
>
> ?
Lots of types. For example, types with copy constructors or
destructors are not POD but may still be copyable.
This should be obvious if you read the definition of POD linked
from the language spec: https://dlang.org/glossary.html#pod
More information about the Digitalmars-d-learn
mailing list