joboccara / NamedType

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

Make `NamedType` trivially constructible when the underlying type is #55

Closed knatten closed 3 years ago

knatten commented 3 years ago

This makes NamedType trivially constructible when the underlying type is. It also adds some useful assertions in the tests.

See the individual commit messages for detailed descriptions.

knatten commented 3 years ago

There are some issues on gcc 5 and 6 here, I'll look into it.