From 5d793483e8eaf99e7a2fd71634ff57324dcf8aa1 Mon Sep 17 00:00:00 2001 From: Pencilcaseman Date: Tue, 15 Aug 2023 20:23:42 -0700 Subject: [PATCH] Remove optimisation. It broke stuff --- librapid/include/librapid/array/operations.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librapid/include/librapid/array/operations.hpp b/librapid/include/librapid/array/operations.hpp index dd26bfdd..ca0d3512 100644 --- a/librapid/include/librapid/array/operations.hpp +++ b/librapid/include/librapid/array/operations.hpp @@ -61,7 +61,7 @@ #define LIBRAPID_UNARY_SHAPE_EXTRACTOR \ template \ - LIBRAPID_NODISCARD static LIBRAPID_ALWAYS_INLINE auto &getShape( \ + LIBRAPID_NODISCARD static LIBRAPID_ALWAYS_INLINE auto getShape( \ const std::tuple &args) { \ static_assert(sizeof...(Args) == 1, "Invalid number of arguments for unary operation"); \ return std::get<0>(args).shape(); \ @@ -69,7 +69,7 @@ #define LIBRAPID_BINARY_SHAPE_EXTRACTOR \ template \ - LIBRAPID_NODISCARD static LIBRAPID_ALWAYS_INLINE auto &getShapeImpl( \ + LIBRAPID_NODISCARD static LIBRAPID_ALWAYS_INLINE auto getShapeImpl( \ const std::tuple &tup) { \ if constexpr (TypeInfo>::type != detail::LibRapidType::Scalar && \ TypeInfo>::type != detail::LibRapidType::Scalar) { \