| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8114ff0 commit d203c35
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,16 +42,11 @@ struct is_accessor { | |||
| 42 | 42 | static constexpr auto value = false; | |
| 43 | 43 | }; | |
| 44 | 44 | ||
| 45 | - /* More specialised: must match accessor template args exactly, and then | ||
| 46 | - * uses std::is_same to make sure that the thing passed in is the same | ||
| 47 | - * type as an accessor with the same template args. */ | ||
| 48 | - template <template <typename, int, cl::sycl::access::mode, | ||
| 49 | - cl::sycl::access::target, cl::sycl::access::placeholder> | ||
| 50 | - class T, typename U, int d, cl::sycl::access::mode m, | ||
| 45 | + /* More specialised: must match accessor template. */ | ||
| 46 | + template <typename U, int d, cl::sycl::access::mode m, | ||
| 51 | 47 | cl::sycl::access::target t, cl::sycl::access::placeholder p> | |
| 52 | - struct is_accessor<T<U, d, m, t, p>> { | ||
| 53 | - static constexpr auto value = | ||
| 54 | - std::is_same<T<U, d, m, t, p>, cl::sycl::accessor<U, d, m, t, p>>::value; | ||
| 48 | + struct is_accessor<cl::sycl::accessor<U, d, m, t, p>> { | ||
| 49 | + static constexpr auto value = true; | ||
| 55 | 50 | }; | |
| 56 | 51 | ||
| 57 | 52 | /* Least specialised, chosen for most typenames. Matches the spec definition | |
| Back | FazBrowse Home | New Git URL |
0 commit comments