From 2bc9455928352dce6471ee4aad99e9d569cd4fcb Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Mon, 6 May 2019 12:03:09 -0400 Subject: [PATCH] fix breakage due to compiling in C++17 --- hipamd/include/hip/hcc_detail/helpers.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hipamd/include/hip/hcc_detail/helpers.hpp b/hipamd/include/hip/hcc_detail/helpers.hpp index 1916945c1a..9366885f8b 100644 --- a/hipamd/include/hip/hcc_detail/helpers.hpp +++ b/hipamd/include/hip/hcc_detail/helpers.hpp @@ -84,12 +84,21 @@ struct is_callable_impl()(std::de // Not callable. template struct is_callable_impl : std::false_type {}; -#else +#elif (__cplusplus < 201703L) template struct is_callable_impl : std::false_type {}; template struct is_callable_impl > > : std::true_type {}; +#else + +// C++17 + +template +struct is_callable_impl : std::false_type {}; + +template +struct is_callable_impl > > : std::true_type {}; #endif template struct is_callable : is_callable_impl {};