Skip to content

Commit a269ad1

Browse files
committed
Use \libglobal more.
1 parent ab89171 commit a269ad1

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

source/diagnostics.tex

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,6 @@
712712
\indexlibraryglobal{error_code}%
713713
\indexlibraryglobal{error_condition}%
714714
\indexlibraryglobal{system_error}%
715-
\indexlibraryglobal{is_error_code_enum}%
716-
\indexlibraryglobal{is_error_condition_enum}%
717-
\indexlibraryglobal{errc}%
718715
\begin{codeblock}
719716
#include <compare> // see \ref{compare.syn}
720717

@@ -728,12 +725,12 @@
728725
class system_error;
729726

730727
template<class T>
731-
struct is_error_code_enum : public false_type {};
728+
struct @\libglobal{is_error_code_enum}@ : public false_type {};
732729

733730
template<class T>
734-
struct is_error_condition_enum : public false_type {};
731+
struct @\libglobal{is_error_condition_enum}@ : public false_type {};
735732

736-
enum class errc { // freestanding
733+
enum class @\libglobal{errc}@ { // freestanding
737734
address_family_not_supported, // \tcode{EAFNOSUPPORT}
738735
address_in_use, // \tcode{EADDRINUSE}
739736
address_not_available, // \tcode{EADDRNOTAVAIL}
@@ -836,7 +833,7 @@
836833

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

source/meta.tex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@
160160
template<class T, T v> struct integral_constant;
161161

162162
template<bool B>
163-
using bool_constant = integral_constant<bool, B>;
164-
using true_type = bool_constant<true>;
165-
using false_type = bool_constant<false>;
163+
using @\libglobal{bool_constant}@ = integral_constant<bool, B>;
164+
using @\libglobal{true_type}@ = bool_constant<true>;
165+
using @\libglobal{false_type}@ = bool_constant<false>;
166166

167167
// \ref{meta.unary.cat}, primary type categories
168168
template<class T> struct is_void;
@@ -595,7 +595,7 @@
595595
\indexlibrarymember{value_type}{integral_constant}%
596596
\begin{codeblock}
597597
namespace std {
598-
template<class T, T v> struct integral_constant {
598+
template<class T, T v> struct @\libglobal{integral_constant}@ {
599599
static constexpr T value = v;
600600

601601
using value_type = T;
@@ -607,7 +607,6 @@
607607
}
608608
\end{codeblock}
609609

610-
\indexlibraryglobal{integral_constant}%
611610
\indexlibraryglobal{bool_constant}%
612611
\indexlibraryglobal{true_type}%
613612
\indexlibraryglobal{false_type}%

0 commit comments

Comments
 (0)