joboccara / NamedType

Implementation of strong types in C++
MIT License
772 stars 85 forks source link

Default constructor value behavior change #79

Open pemessier opened 2 years ago

pemessier commented 2 years ago

Since 5f172345bd62b13bd6ff52c055e6e6d66d0aab23 from @knatten , there is a behavior change as well, the underlying type initial value is not the same as before. For example, a POD like int or double would be initialized to 0 before this changeset which could be handy. Now it behaves like a POD by leaving the memory as-is, which is also correct. However this is a big behavior change.

Is there a way we could force the old behavior (prehaps using a new skill)?