Skip to content

Commit f766ca8

Browse files
ToruNiinaalliepiper
authored andcommitted
Fix specialization of is_error_code_enum
Explicit specialization of a struct outside its namespace requires nested-name-specifier. Bug 2808654 Reviewed-by: Allison Vacanti <alliepiper16@gmail.com>
1 parent e1816d8 commit f766ca8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

thrust/detail/event_error.h

+3
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ inline error_category const& event_category()
106106
return result;
107107
}
108108

109+
namespace system
110+
{
109111
/// Specialization of \p is_error_code_enum for \p event_errc.
110112
template<> struct is_error_code_enum<event_errc> : true_type {};
113+
} // end system
111114

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

0 commit comments

Comments
 (0)