From ffb8e71dbdadff7eeb7090dd6bd0c25d1bfd8f0e Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Fri, 25 Jun 2021 17:28:22 +0200 Subject: [PATCH] multi_array_operation: replace template spec by static if --- src/include/multi_array_operation.cc.h | 59 +++++++++++--------------- 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/src/include/multi_array_operation.cc.h b/src/include/multi_array_operation.cc.h index 7639247..3e47fcd 100644 --- a/src/include/multi_array_operation.cc.h +++ b/src/include/multi_array_operation.cc.h @@ -592,43 +592,34 @@ namespace MultiArrayTools return this->template asx>(in,i); } - template - struct VExec + template class F, typename TarOp, class OpClass> + inline void vexec(TarOp& th, const OpClass& in) { - template