diff --git a/matroska/matroskatrack.cpp b/matroska/matroskatrack.cpp index f0f8210..8b01f78 100644 --- a/matroska/matroskatrack.cpp +++ b/matroska/matroskatrack.cpp @@ -226,7 +226,7 @@ void MatroskaTrack::assignPropertyFromTagValue(const std::unique_ptr>...> NumberType tagValueToNumber(const TagValue &tagValue) +template >* = nullptr> NumberType tagValueToNumber(const TagValue &tagValue) { // optimization for Latin1/UTF-8 strings if (tagValue.type() == TagDataType::Text) { @@ -241,7 +241,7 @@ template >... return stringToNumber(tagValue.toString(TagTextEncoding::Utf8)); } -template >...> NumberType tagValueToBitrate(const TagValue &tagValue) +template >* = nullptr> NumberType tagValueToBitrate(const TagValue &tagValue) { return stringToNumber(tagValue.toString(TagTextEncoding::Utf8)) / 1000; } diff --git a/positioninset.h b/positioninset.h index 9b0c573..db32359 100644 --- a/positioninset.h +++ b/positioninset.h @@ -21,7 +21,7 @@ namespace TagParser { class TAG_PARSER_EXPORT PositionInSet { public: constexpr PositionInSet(int32 position = 0, int32 total = 0); - template >...> + template >* = nullptr> PositionInSet(const StringType &numericString); constexpr int32 position() const; @@ -29,7 +29,7 @@ public: constexpr bool isNull() const; constexpr bool operator==(const PositionInSet &other) const; - template >...> + template >* = nullptr> StringType toString() const; private: @@ -43,7 +43,7 @@ private: * \param numericString Specifies the string containing the position and possibly * the total element count (separated by "/"). */ -template >...> +template >*> PositionInSet::PositionInSet(const StringType &numericString) : m_position(0) , m_total(0) @@ -105,7 +105,7 @@ constexpr inline bool PositionInSet::operator==(const PositionInSet &other) cons /*! * \brief Returns the string representation of the current PositionInSet. */ -template >...> +template >*> StringType PositionInSet::toString() const { std::basic_stringstream ss;