strongdef: remove unnecessary copy constructor

Reduces issues with compiler generated assignment operators.
This commit is contained in:
Danny Robson 2017-01-27 14:56:54 +11:00
parent 2d41136621
commit 90621ca7f8

View File

@ -31,7 +31,6 @@ namespace util {
constexpr strongdef () = delete; 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) { ; }
// 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