From fd2ec8dbd4721eb39b8c4ab586a2990ed021a9dc Mon Sep 17 00:00:00 2001 From: "Ryan M. Richard" Date: Fri, 13 Dec 2024 15:20:25 -0600 Subject: [PATCH] should fix SimDe --- include/tensorwrapper/tensor/tensor_class.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/tensorwrapper/tensor/tensor_class.hpp b/include/tensorwrapper/tensor/tensor_class.hpp index 1ad7eaed..e67407aa 100644 --- a/include/tensorwrapper/tensor/tensor_class.hpp +++ b/include/tensorwrapper/tensor/tensor_class.hpp @@ -21,7 +21,13 @@ namespace tensorwrapper { namespace detail_ { class TensorPIMPL; -} + +template +struct IsTuple : std::false_type {}; + +template +struct IsTuple> : std::true_type {}; +} // namespace detail_ /** @brief Represents a multi-dimensional array of values. * @@ -39,8 +45,8 @@ class Tensor { /// Are any of the types in @p Args equal to Tensor? template - static constexpr bool are_any_tensors_v = - std::disjunction_v...>; + static constexpr bool are_any_tensors_v = std::disjunction_v< + std::disjunction, detail_::IsTuple>...>; /// Enables a function so long as no type in @p Args is Tensor template