Skip to content

Commit e88dac1

Browse files
Address CR comment
1 parent 824b517 commit e88dac1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/include/sycl/ext/oneapi/experimental/annotated_usm/alloc_util.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ struct ValidAllocPropertyList<T, detail::properties_t<Prop, Props...>>
9292
ValidAllocPropertyList<
9393
T, detail::properties_t<Props...>>::value> {
9494
static_assert(is_property_value_v<Prop>);
95+
static constexpr bool is_compile_time = std::is_empty_v<Prop>;
9596
// check if a compile-time property is valid for annotated_ptr
96-
static_assert(!std::is_empty_v<Prop> || is_valid_property<T *, Prop>::value,
97+
static_assert(!is_compile_time || is_valid_property<T *, Prop>::value,
9798
"Found invalid compile-time property in the property list.");
9899
// check if a runtime property is valid for malloc
99-
static_assert(std::is_empty_v<Prop> || IsRuntimePropertyValid<Prop>::value,
100+
static_assert(is_compile_time || IsRuntimePropertyValid<Prop>::value,
100101
"Found invalid runtime property in the property list.");
101102
};
102103

0 commit comments

Comments
 (0)