From a973b3c4fd39d0761b1016cdf03e0498dec7fe81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Wed, 6 Jul 2016 09:38:01 +0100 Subject: [PATCH] [diagnostics] Make system_error synopsis more consistent --- source/diagnostics.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/diagnostics.tex b/source/diagnostics.tex index 7d61f7710d..e966e00d55 100644 --- a/source/diagnostics.tex +++ b/source/diagnostics.tex @@ -876,12 +876,12 @@ wrong_protocol_type, // \tcode{EPROTOTYPE} }; - template <> struct is_error_condition_enum : true_type { }; + template <> struct is_error_condition_enum : 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; @@ -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 struct hash; template <> struct hash; - // \ref{syserr} System error support + // \ref{syserr}, system error support: template constexpr bool is_error_code_enum_v = is_error_code_enum::value; template constexpr bool is_error_condition_enum_v = is_error_condition_enum::value; -} // namespace std +} \end{codeblock} \pnum The value of each \tcode{enum errc} constant shall be the same as