From 3b7de792d5c3628bf9f0c4df64962a76a05cf5ac Mon Sep 17 00:00:00 2001 From: paboyle Date: Tue, 18 Apr 2017 13:28:04 +0100 Subject: [PATCH] Type comparison in the traits work --- lib/simd/Grid_vector_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/simd/Grid_vector_types.h b/lib/simd/Grid_vector_types.h index 7087d724..1bafe12e 100644 --- a/lib/simd/Grid_vector_types.h +++ b/lib/simd/Grid_vector_types.h @@ -91,10 +91,12 @@ template <> struct is_complex > : public std::true_type {}; template using IfReal = Invoke::value, int> >; template using IfComplex = Invoke::value, int> >; template using IfInteger = Invoke::value, int> >; +template using IfSame = Invoke::value, int> >; template using IfNotReal = Invoke::value, int> >; template using IfNotComplex = Invoke::value, int> >; template using IfNotInteger = Invoke::value, int> >; +template using IfNotSame = Invoke::value, int> >; //////////////////////////////////////////////////////// // Define the operation templates functors