summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-04 12:40:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-05 12:34:52 +0200
commit13171dea89657b71072f5e665c71b7cc7fc467d3 (patch)
tree0abaca0e000c7123c7da6ef964cb93cdaf97413d /logic/pipeline.cpp
parent4a87519e9823f160087543e2a7a42fa2aa1996eb (diff)
logic/pipeline: fix clang error
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r--logic/pipeline.cpp13
1 files changed, 5 insertions, 8 deletions
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<u,w>& r)
return false;
}
-template<typename x, typename y, typename... xs>
-static force_inline bool nan_check_(const x& datum, const y& next, const xs&... rest)
-{
- return is_nan(datum) || nan_check_(next, rest...);
-}
-
template<typename x>
static force_inline bool nan_check_(const x& datum)
{
return is_nan(datum);
}
-template<typename>
-static bool nan_check_() = delete;
+template<typename x, typename y, typename... xs>
+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)