Skip to content

Commit 3e72b46

Browse files
maarquitos14Chenyang-L
authored andcommitted
[SYCL] Replace std::true/false_t by std::true/false_type. (#10068)
`std::true_t` and `std::false_t` don't exist, the correct ones are `std::true_type` and `std::false_type`. Signed-off-by: Maronas, Marcos <[email protected]>
1 parent 0859ae6 commit 3e72b46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sycl/doc/design/DeviceAspectTraitDesign.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ traits `any_device_has` and `all_devices_have` as described in the
55
[SYCL 2020 Specification Rev. 6 Section 4.6.4.3][1].
66

77
In summary, `any_device_has<aspect>` and `all_devices_have<aspect>` must inherit
8-
from either `std::true_t` or `std::false_t` depending on whether the
8+
from either `std::true_type` or `std::false_type` depending on whether the
99
corresponding compilation environment can guarantee that any and all the
1010
supported devices support the `aspect`.
1111

@@ -86,7 +86,7 @@ template<> all_devices_have<aspect::gpu> : std::bool_constant<__SYCL_ALL_DEVICES
8686

8787
#ifdef __SYCL_ANY_DEVICE_HAS_ANY_ASPECT__
8888
// Special case where any_device_has is trivially true.
89-
template <aspect Aspect> any_device_has : std::true_t {};
89+
template <aspect Aspect> any_device_has : std::true_type {};
9090
#else
9191
template <aspect Aspect> any_device_has;
9292
template<> any_device_has<aspect::host> : std::bool_constant<__SYCL_ANY_DEVICE_HAS_0__> {};

sycl/include/sycl/device_aspect_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct all_devices_have<aspect::ext_intel_legacy_image>
141141

142142
#ifdef __SYCL_ANY_DEVICE_HAS_ANY_ASPECT__
143143
// Special case where any_device_has is trivially true.
144-
template <aspect Aspect> struct any_device_has : std::true_t {};
144+
template <aspect Aspect> struct any_device_has : std::true_type {};
145145
#else
146146
template <aspect Aspect> struct any_device_has;
147147
template <>

0 commit comments

Comments
 (0)