File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include < CL/sycl/detail/pi.hpp>
14
14
15
+ #include < type_traits>
16
+
15
17
__SYCL_INLINE_NAMESPACE (cl) {
16
18
namespace sycl {
17
19
namespace detail {
18
20
namespace pi {
19
21
20
- template <typename T> inline void print (T val) {
22
+ template <typename T>
23
+ inline typename std::enable_if<!std::is_pointer<T>::value, void >::type
24
+ print (T val) {
21
25
std::cout << " <unknown> : " << val << std::endl;
22
26
}
23
27
28
+ template <typename T>
29
+ inline typename std::enable_if<std::is_pointer<T>::value, void >::type
30
+ print (T val) {
31
+ std::cout << " <unknown> : " << reinterpret_cast <const void *>(val)
32
+ << std::endl;
33
+ }
34
+
24
35
template <> inline void print<>(PiPlatform val) {
25
36
std::cout << " pi_platform : " << val << std::endl;
26
37
}
You can’t perform that action at this time.
0 commit comments