From 13171dea89657b71072f5e665c71b7cc7fc467d3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 4 May 2018 12:40:16 +0200 Subject: logic/pipeline: fix clang error --- logic/pipeline.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'logic') diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index 8796d237..7f390ae1 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -230,20 +230,17 @@ static bool is_nan(const dmat& r) return false; } -template -static force_inline bool nan_check_(const x& datum, const y& next, const xs&... rest) -{ - return is_nan(datum) || nan_check_(next, rest...); -} - template static force_inline bool nan_check_(const x& datum) { return is_nan(datum); } -template -static bool nan_check_() = delete; +template +static force_inline bool nan_check_(const x& datum, const y& next, const xs&... rest) +{ + return is_nan(datum) || nan_check_(next, rest...); +} static never_inline void emit_nan_check_msg(const char* text, const char* fun, int line) -- cgit v1.2.3