strongdef: delete default constructor

generally we use this for identifiers, and allowing the user to express
arbitrary values from default construction isn't a great idea.
This commit is contained in:
Danny Robson 2016-10-06 16:41:18 +11:00
parent 08249f530e
commit 2e54950b1a

View File

@ -29,7 +29,7 @@ namespace util {
using value_type = T; using value_type = T;
using tag_type = Tag; using tag_type = Tag;
constexpr strongdef () = default; constexpr strongdef () = delete;
constexpr explicit strongdef (const T &_data): data (_data) { ; } constexpr explicit strongdef (const T &_data): data (_data) { ; }
constexpr strongdef (const strongdef &rhs): data (rhs.data) { ; } constexpr strongdef (const strongdef &rhs): data (rhs.data) { ; }