summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-08-05 11:05:06 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-08-05 11:05:06 +0200
commit8c2dd91b940d88451377a902bd4fd5535ac7d623 (patch)
tree64f34f4c799bba965d3891a3ad5da1a041842dbe /modules
parente46eef0dd8c845d77570e9194a83b09a4689ccfa (diff)
downloadforstio-forstio-8c2dd91b940d88451377a902bd4fd5535ac7d623.tar.gz
Used type check instead of value check
Diffstat (limited to 'modules')
-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;