From 53579deb2d551752b503b7b76ac04885ec354470 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Wed, 26 Feb 2020 23:19:34 +0100 Subject: Bug in gcc-8 --- src/python/gudhi/clustering/_tomato.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/python/gudhi/clustering') diff --git a/src/python/gudhi/clustering/_tomato.cc b/src/python/gudhi/clustering/_tomato.cc index 1c896174..746c4254 100644 --- a/src/python/gudhi/clustering/_tomato.cc +++ b/src/python/gudhi/clustering/_tomato.cc @@ -18,8 +18,11 @@ namespace py=pybind11; template::value>> int getint(int i){return i;} -template().template cast())> -int getint(T i){return i.template cast();} +// Gcc-8 has a bug that breaks this version, fixed in gcc-9 +// template().template cast())> +// int getint(T i){return i.template cast();} +template +auto getint(T i)->decltype(i.template cast()){return i.template cast();} // Raw clusters are clusters obtained through single-linkage, no merging. -- cgit v1.2.3