Skip to content

Commit c5e4618

Browse files
committed
LWG3595 Exposition-only classes proxy and postfix-proxy for common_iterator should be fully constexpr
1 parent c17920d commit c5e4618

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/iterators.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4959,10 +4959,10 @@
49594959
\begin{codeblock}
49604960
class @\exposid{proxy}@ {
49614961
iter_value_t<I> keep_;
4962-
@\exposid{proxy}@(iter_reference_t<I>&& x)
4962+
constexpr @\exposid{proxy}@(iter_reference_t<I>&& x)
49634963
: keep_(std::move(x)) {}
49644964
public:
4965-
const iter_value_t<I>* operator->() const {
4965+
constexpr const iter_value_t<I>* operator->() const noexcept {
49664966
return addressof(keep_);
49674967
}
49684968
};
@@ -5028,10 +5028,10 @@
50285028
\begin{codeblock}
50295029
class @\exposid{postfix-proxy}@ {
50305030
iter_value_t<I> keep_;
5031-
@\exposid{postfix-proxy}@(iter_reference_t<I>&& x)
5031+
constexpr @\exposid{postfix-proxy}@(iter_reference_t<I>&& x)
50325032
: keep_(std::forward<iter_reference_t<I>>(x)) {}
50335033
public:
5034-
const iter_value_t<I>& operator*() const {
5034+
constexpr const iter_value_t<I>& operator*() const noexcept {
50355035
return keep_;
50365036
}
50375037
};

0 commit comments

Comments
 (0)