diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 1a942818..84182ad8 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -657,6 +657,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