From 71b963d404710d72c3d12e97e5a84c3d2d2c8b3e Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 4 Dec 2017 10:10:56 +0000 Subject: [PATCH] Removed explicit from constructor from underlying value type. --- src/type_def.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; } //*********************************************************************