From 8c2dd91b940d88451377a902bd4fd5535ac7d623 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 5 Aug 2026 11:05:06 +0200 Subject: Used type check instead of value check --- modules/codec-unit/c++/unit_transform.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 class unit_matching_reduce, unit_redux_list,schema::UnitElement...>, unit_redux_list...>> { public: - static constexpr bool is_same = std::is_same_v and std::is_same_v; + static constexpr bool is_same = std::is_same_v and (S == S0); // Match T,E against T0,E0 using ReducedType = typename std::conditional, schema::UnitElement>::type; -- cgit v1.2.3