From fe660cdff59aa3a939479ed60172e5c0803552b2 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sun, 8 Jan 2017 18:21:23 +0100 Subject: 8.7 --- zen/basic_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zen/basic_math.h') diff --git a/zen/basic_math.h b/zen/basic_math.h index e9e17466..eed23477 100644 --- a/zen/basic_math.h +++ b/zen/basic_math.h @@ -18,7 +18,7 @@ namespace numeric { template T abs(T value); -template T dist(T a, T b); +template auto dist(T a, T b); template int sign(T value); //returns one of {-1, 0, 1} template T min(T a, T b, T c); template T max(T a, T b, T c); @@ -90,7 +90,7 @@ T abs(T value) } template inline -T dist(T a, T b) +auto dist(T a, T b) //return type might be different than T, e.g. std::chrono::duration instead of std::chrono::time_point { return a > b ? a - b : b - a; } -- cgit