strongdef: allow constructor to be implicit

This commit is contained in:
Danny Robson 2018-06-05 13:25:23 +10:00
parent c6cefe219d
commit 8cd33ae5e5

View File

@ -30,7 +30,7 @@ namespace util {
using tag_type = Tag; using tag_type = Tag;
constexpr strongdef () = delete; constexpr strongdef () = delete;
constexpr explicit strongdef (const T &_data): data (_data) { ; } constexpr strongdef (const T &_data): data (_data) { ; }
// explicitly disable assignment with unequal types or tags. this // explicitly disable assignment with unequal types or tags. this
// prevents the converion operator getting invoked and falsely // prevents the converion operator getting invoked and falsely