Skip to content

Commit 93ab5e7

Browse files
authored
Merge 2021-06 LWG Motion 5
P1328R1 Making std::type_info::operator== constexpr
2 parents 17f78fa + 861beba commit 93ab5e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/support.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@
594594
#define @\defnlibxname{cpp_lib_constexpr_string}@ 201907L // also in \libheader{string}
595595
#define @\defnlibxname{cpp_lib_constexpr_string_view}@ 201811L // also in \libheader{string_view}
596596
#define @\defnlibxname{cpp_lib_constexpr_tuple}@ 201811L // also in \libheader{tuple}
597+
#define @\defnlibxname{cpp_lib_constexpr_typeinfo}@ 202106L // also in \libheader{typeinfo}
597598
#define @\defnlibxname{cpp_lib_constexpr_utility}@ 201811L // also in \libheader{utility}
598599
#define @\defnlibxname{cpp_lib_constexpr_vector}@ 201907L // also in \libheader{vector}
599600
#define @\defnlibxname{cpp_lib_coroutine}@ 201902L // also in \libheader{coroutine}
@@ -3112,7 +3113,7 @@
31123113
class type_info {
31133114
public:
31143115
virtual ~type_info();
3115-
bool operator==(const type_info& rhs) const noexcept;
3116+
constexpr bool operator==(const type_info& rhs) const noexcept;
31163117
bool before(const type_info& rhs) const noexcept;
31173118
size_t hash_code() const noexcept;
31183119
const char* name() const noexcept;
@@ -3135,7 +3136,7 @@
31353136

31363137
\indexlibrarymember{operator==}{type_info}%
31373138
\begin{itemdecl}
3138-
bool operator==(const type_info& rhs) const noexcept;
3139+
constexpr bool operator==(const type_info& rhs) const noexcept;
31393140
\end{itemdecl}
31403141

31413142
\begin{itemdescr}

0 commit comments

Comments
 (0)