File: invoke_result-std.patch

package info (click to toggle)
rocthrust 6.1.2-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 12,832 kB
  • sloc: cpp: 66,192; ansic: 33,766; python: 1,488; sh: 332; xml: 200; makefile: 114
file content (17 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Reintroduce fallback lost in https://github.com/ROCm/rocThrust/commit/2b80e29803d60f01701a67bc57ef06dacfe8af8b
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Forwarded: https://github.com/ROCm/rocThrust/pull/402
Bug-Debian: https://bugs.debian.org/1064730
Last-Update: 2024-04-16

--- rocthrust-5.7.1.orig/thrust/detail/type_traits.h
+++ rocthrust-5.7.1/thrust/detail/type_traits.h
@@ -731,6 +731,8 @@ using invoke_result_t =
 #else // 2017+
   ::cuda::std::invoke_result_t<Invokable, Args...>;
 #endif
+#else
+  std::invoke_result_t<Invokable, Args...>;
 #endif
 
 template <class F, class... Us>