Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix specialization of is_error_code_enum #1043

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions thrust/detail/event_error.h
Expand Up @@ -106,8 +106,11 @@ inline error_category const& event_category()
return result;
}

namespace system
{
/// Specialization of \p is_error_code_enum for \p event_errc.
template<> struct is_error_code_enum<event_errc> : true_type {};
} // end system

/// \return <tt>error_code(static_cast<int>(e), event_category())</tt>
inline error_code make_error_code(event_errc e)
Expand Down