diff --git a/include/CLI/TypeTools.hpp b/include/CLI/TypeTools.hpp index 54cbb416..be985322 100644 --- a/include/CLI/TypeTools.hpp +++ b/include/CLI/TypeTools.hpp @@ -544,7 +544,8 @@ template } /// Get the type size of the sum of type sizes for all the individual tuple types -template struct type_count::value>::type> { +template +struct type_count::value && !is_complex::value>::type> { static constexpr int value{tuple_type_size()}; }; @@ -593,7 +594,8 @@ template } /// Get the type size of the sum of type sizes for all the individual tuple types -template struct type_count_min::value>::type> { +template +struct type_count_min::value && !is_complex::value>::type> { static constexpr int value{tuple_type_size_min()}; };