From 89d51a6004edc3ee99a02d5bb6c9f450b14b09f2 Mon Sep 17 00:00:00 2001 From: "Maronas, Marcos" Date: Mon, 26 Jun 2023 07:45:45 -0700 Subject: [PATCH] Replace std::true/false_t by std::true/false_type. Signed-off-by: Maronas, Marcos --- sycl/doc/design/DeviceAspectTraitDesign.md | 4 ++-- sycl/include/sycl/device_aspect_traits.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sycl/doc/design/DeviceAspectTraitDesign.md b/sycl/doc/design/DeviceAspectTraitDesign.md index 14f579911e559..25131eb3450a6 100644 --- a/sycl/doc/design/DeviceAspectTraitDesign.md +++ b/sycl/doc/design/DeviceAspectTraitDesign.md @@ -5,7 +5,7 @@ traits `any_device_has` and `all_devices_have` as described in the [SYCL 2020 Specification Rev. 6 Section 4.6.4.3][1]. In summary, `any_device_has` and `all_devices_have` must inherit -from either `std::true_t` or `std::false_t` depending on whether the +from either `std::true_type` or `std::false_type` depending on whether the corresponding compilation environment can guarantee that any and all the supported devices support the `aspect`. @@ -86,7 +86,7 @@ template<> all_devices_have : std::bool_constant<__SYCL_ALL_DEVICES #ifdef __SYCL_ANY_DEVICE_HAS_ANY_ASPECT__ // Special case where any_device_has is trivially true. -template any_device_has : std::true_t {}; +template any_device_has : std::true_type {}; #else template any_device_has; template<> any_device_has : std::bool_constant<__SYCL_ANY_DEVICE_HAS_0__> {}; diff --git a/sycl/include/sycl/device_aspect_traits.hpp b/sycl/include/sycl/device_aspect_traits.hpp index cb81941cab4c5..b5259e4d5e7bb 100644 --- a/sycl/include/sycl/device_aspect_traits.hpp +++ b/sycl/include/sycl/device_aspect_traits.hpp @@ -141,7 +141,7 @@ struct all_devices_have #ifdef __SYCL_ANY_DEVICE_HAS_ANY_ASPECT__ // Special case where any_device_has is trivially true. -template struct any_device_has : std::true_t {}; +template struct any_device_has : std::true_type {}; #else template struct any_device_has; template <>