diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 7590d8ef..1db1b2d4 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -626,6 +626,8 @@ class EBML_DLL_API EbmlElementDefaultStorage : public EbmlElementDefault { return Value; } + explicit operator const S &() const { return Value; } + protected: S Value; }; diff --git a/ebml/EbmlString.h b/ebml/EbmlString.h index b82f08ee..7514bd0b 100644 --- a/ebml/EbmlString.h +++ b/ebml/EbmlString.h @@ -29,7 +29,6 @@ class EBML_DLL_API EbmlString : public EbmlElementDefaultStorage