File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -202,5 +202,5 @@ class __SYCL_EXPORT SYCLCategory : public std::error_category {
202
202
} // __SYCL_INLINE_NAMESPACE(cl)
203
203
204
204
namespace std {
205
- template <> struct is_error_condition_enum <cl::sycl::errc> : true_type {};
205
+ template <> struct is_error_code_enum <cl::sycl::errc> : true_type {};
206
206
} // namespace std
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ int main() {
72
72
assert (std::string (" SYCL" ).compare (ec.category ().name ()) == 0 &&
73
73
" error code category name should be SYCL" );
74
74
75
+ // Test enum
76
+ static_assert (std::is_error_code_enum<sycl::errc>::value, " errc enum should identify as error code" );
77
+ static_assert (!std::is_error_condition_enum<sycl::errc>::value, " errc enum should not identify as error condition" );
78
+
75
79
std::cout << " OK" << std::endl;
76
80
return 0 ;
77
81
}
You can’t perform that action at this time.
0 commit comments