joboccara / NamedType

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

Added Skill to disable default construction. #70

Open Nicholas42 opened 2 years ago

Nicholas42 commented 2 years ago

Addresses #68.

The initial commit had such a type not constructible at all (whooops^^). I worked around this by making the default constructor of NonDefaultConstructible private instead of deleting it and routing the construction through a friend function, when we actually want it to be constructible.