diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index f49fce80..0134d37c 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -654,6 +654,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