From b11b53aca1ff60d9e5eff5bfb1a16d00791ff496 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Fri, 30 Sep 2022 14:36:05 +0200 Subject: [PATCH] Add warning for not slicing --- include/atrip/Unions.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/atrip/Unions.hpp b/include/atrip/Unions.hpp index a4214fc..7419f8e 100644 --- a/include/atrip/Unions.hpp +++ b/include/atrip/Unions.hpp @@ -52,6 +52,8 @@ namespace atrip { , origin_.up.data() , 1.0); memcpy(v.data(), toSlice.data, sizeof(F) * v.size()); +#else +# pragma message("WARNING: COMPILING WITHOUT SLICING THE TENSORS") #endif }