Skip to content

[diagnostics] Make system_error synopsis more consistent #795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/diagnostics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -876,12 +876,12 @@
wrong_protocol_type, // \tcode{EPROTOTYPE}
};

template <> struct is_error_condition_enum<errc> : true_type { };
template <> struct is_error_condition_enum<errc> : true_type {};

error_code make_error_code(errc e) noexcept;
error_condition make_error_condition(errc e) noexcept;

// \ref{syserr.compare} Comparison operators:
// \ref{syserr.compare}, comparison operators:
bool operator==(const error_code& lhs, const error_code& rhs) noexcept;
bool operator==(const error_code& lhs, const error_condition& rhs) noexcept;
bool operator==(const error_condition& lhs, const error_code& rhs) noexcept;
Expand All @@ -891,16 +891,16 @@
bool operator!=(const error_condition& lhs, const error_code& rhs) noexcept;
bool operator!=(const error_condition& lhs, const error_condition& rhs) noexcept;

// \ref{syserr.hash} Hash support
// \ref{syserr.hash}, hash support:
template <class T> struct hash;
template <> struct hash<error_code>;

// \ref{syserr} System error support
// \ref{syserr}, system error support:
template <class T> constexpr bool is_error_code_enum_v
= is_error_code_enum<T>::value;
template <class T> constexpr bool is_error_condition_enum_v
= is_error_condition_enum<T>::value;
} // namespace std
}
\end{codeblock}

\pnum The value of each \tcode{enum errc} constant shall be the same as
Expand Down