From 6e2efe563ac7535a51c4af6c75d6b0d32a92b91b 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 [ROCm/hip commit: cec09269247dee5811103330e2b1959837d32bb2] --- projects/hip/include/hip/hcc_detail/helpers.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/helpers.hpp b/projects/hip/include/hip/hcc_detail/helpers.hpp index 1916945c1a..9366885f8b 100644 --- a/projects/hip/include/hip/hcc_detail/helpers.hpp +++ b/projects/hip/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 {};