Skip to content

Commit 5a87a8f

Browse files
jensmaurertkoeppe
authored andcommitted
[system.error.syn] Use \libglobal for indexing
1 parent 2a3292f commit 5a87a8f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source/diagnostics.tex

+4-7
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,6 @@
713713
\indexlibraryglobal{error_code}%
714714
\indexlibraryglobal{error_condition}%
715715
\indexlibraryglobal{system_error}%
716-
\indexlibraryglobal{is_error_code_enum}%
717-
\indexlibraryglobal{is_error_condition_enum}%
718-
\indexlibraryglobal{errc}%
719716
\begin{codeblock}
720717
#include <compare> // see \ref{compare.syn}
721718

@@ -729,12 +726,12 @@
729726
class system_error;
730727

731728
template<class T>
732-
struct is_error_code_enum : public false_type {};
729+
struct @\libglobal{is_error_code_enum}@ : public false_type {};
733730

734731
template<class T>
735-
struct is_error_condition_enum : public false_type {};
732+
struct @\libglobal{is_error_condition_enum}@ : public false_type {};
736733

737-
enum class errc { // freestanding
734+
enum class @\libglobal{errc}@ { // freestanding
738735
address_family_not_supported, // \tcode{EAFNOSUPPORT}
739736
address_in_use, // \tcode{EADDRINUSE}
740737
address_not_available, // \tcode{EADDRNOTAVAIL}
@@ -837,7 +834,7 @@
837834

838835
// \ref{syserr}, system error support
839836
template<class T>
840-
constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;
837+
constexpr bool @\libglobal{is_error_code_enum_v}@ = is_error_code_enum<T>::value;
841838
template<class T>
842839
constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;
843840
}

0 commit comments

Comments
 (0)