diff --git a/src/type_def.h b/src/type_def.h index 69e89442..f3c0907d 100644 --- a/src/type_def.h +++ b/src/type_def.h @@ -64,7 +64,7 @@ namespace etl } //********************************************************************* - explicit type_def(TValue value_) + type_def(TValue value_) : value(value_) { } @@ -237,11 +237,18 @@ namespace etl return *this; } + //********************************************************************* + type_def& operator =(TValue rhs) + { + value = rhs; + return *this; + } + //********************************************************************* type_def& operator =(const type_def& rhs) { - value = rhs.value; - return *this; + value = rhs.value; + return *this; } //*********************************************************************