summaryrefslogtreecommitdiff
path: root/modules/codec-unit/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec-unit/c++')
-rw-r--r--modules/codec-unit/c++/unit_transform.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec-unit/c++/unit_transform.hpp b/modules/codec-unit/c++/unit_transform.hpp
index 40a85a1..5ea0f8d 100644
--- a/modules/codec-unit/c++/unit_transform.hpp
+++ b/modules/codec-unit/c++/unit_transform.hpp
@@ -35,7 +35,7 @@ public:
template<typename T, int64_t E, int64_t S, typename T0, int64_t E0, int64_t S0, typename... TL, int64_t... EL, int64_t... SL, typename... TR, int64_t... ER, int64_t... SR>
class unit_matching_reduce<schema::UnitElement<T,E,S>, unit_redux_list<schema::UnitElement<T0,E0,S0>,schema::UnitElement<TL,EL,SL>...>, unit_redux_list<schema::UnitElement<TR,ER,SR>...>> {
public:
- static constexpr bool is_same = std::is_same_v<T,T0> and std::is_same_v<S,S0>;
+ static constexpr bool is_same = std::is_same_v<T,T0> and (S == S0);
// Match T,E against T0,E0
using ReducedType = typename std::conditional<is_same, schema::UnitElement<T,E+E0,S>, schema::UnitElement<T,E,S>>::type;