Added scalar const conversion operator.

This commit is contained in:
James Goppert
2016-02-26 05:47:24 -05:00
parent 7b969094cb
commit 6974f97b1c
+7 -1
View File
@@ -39,10 +39,16 @@ public:
_value = other;
}
operator Type()
operator Type &()
{
return _value;
}
operator Type const &() const
{
return _value;
}
private:
Type _value;