Skip to content

Commit

Permalink
[system.error.syn] Use \libglobal for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer authored and tkoeppe committed Oct 21, 2024
1 parent 2a3292f commit 5a87a8f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions source/diagnostics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,6 @@
\indexlibraryglobal{error_code}%
\indexlibraryglobal{error_condition}%
\indexlibraryglobal{system_error}%
\indexlibraryglobal{is_error_code_enum}%
\indexlibraryglobal{is_error_condition_enum}%
\indexlibraryglobal{errc}%
\begin{codeblock}
#include <compare> // see \ref{compare.syn}

Expand All @@ -729,12 +726,12 @@
class system_error;

template<class T>
struct is_error_code_enum : public false_type {};
struct @\libglobal{is_error_code_enum}@ : public false_type {};

template<class T>
struct is_error_condition_enum : public false_type {};
struct @\libglobal{is_error_condition_enum}@ : public false_type {};

enum class errc { // freestanding
enum class @\libglobal{errc}@ { // freestanding
address_family_not_supported, // \tcode{EAFNOSUPPORT}
address_in_use, // \tcode{EADDRINUSE}
address_not_available, // \tcode{EADDRNOTAVAIL}
Expand Down Expand Up @@ -837,7 +834,7 @@

// \ref{syserr}, system error support
template<class T>
constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;
constexpr bool @\libglobal{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;
}
Expand Down

0 comments on commit 5a87a8f

Please sign in to comment.