added additional check for __cpp_lib_result_of_sfinae in case compiler reports a too low _cplusplus version but supports std::result_of
git-commit
git-author Manuel Schiller
[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246205]
MODIFY
thrust/detail/type_traits/result_of_adaptable_function.h
thrust/detail/type_traits/result_of_adaptable_function.h
#include <thrust/detail/type_traits.h>
#include <thrust/detail/type_traits/function_traits.h>
-#if __cplusplus >= 201103L
+#if __cplusplus >= 201103L || defined(__cpp_lib_result_of_sfinae)
// necessary for std::result_of
#include <type_traits>
#endif
@@ -30,7 +30,7 @@ namespace thrust
namespace detail
{
-#if __cplusplus >= 201103L
+#if __cplusplus >= 201103L || defined(__cpp_lib_result_of_sfinae)
template<typename Signature>
struct result_of

added additional check for __cpp_lib_result_of_sfinae in case compiler reports a too low _cplusplus version but supports std::result_of
git-commit 51c643b366b7016cf31f131bba6a457502a07ff1
git-author Manuel Schiller <manuel.schiller@caligano.de>

[git-p4: depot-paths = "//sw/gpgpu/thrust/": change = 24246205]