Skip to content

Commit d6d3839

Browse files
author
Dawn Perchik
committed
LWG2576 istream_iterator and ostream_iterator should use std::addressof
1 parent f957c8d commit d6d3839

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

source/iterators.tex

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,11 +2731,12 @@
27312731
\begin{itemdescr}
27322732
\pnum
27332733
\effects
2734-
Initializes \textit{in_stream} with \tcode{\&s}. \textit{value} may be initialized during
2734+
Initializes \textit{in_stream} with \tcode{addressof(s)}.
2735+
\textit{value} may be initialized during
27352736
construction or the first time it is referenced.
27362737

27372738
\pnum
2738-
\postcondition \tcode{in_stream == \&s}.
2739+
\postcondition \tcode{in_stream == addressof(s)}.
27392740
\end{itemdescr}
27402741

27412742

@@ -2787,7 +2788,7 @@
27872788
\begin{itemdescr}
27882789
\pnum
27892790
\returns
2790-
\tcode{\&(operator*())}.
2791+
\tcode{addressof(operator*())}.
27912792
\end{itemdescr}
27922793

27932794
\indexlibrary{\idxcode{operator++}!\idxcode{istream_iterator}}%
@@ -2925,7 +2926,8 @@
29252926
\begin{itemdescr}
29262927
\pnum
29272928
\effects
2928-
Initializes \textit{out_stream} with \tcode{\&s} and \textit{delim} with null.
2929+
Initializes \textit{out_stream} with \tcode{addressof(s)} and
2930+
\textit{delim} with null.
29292931
\end{itemdescr}
29302932

29312933

@@ -2937,7 +2939,8 @@
29372939
\begin{itemdescr}
29382940
\pnum
29392941
\effects
2940-
Initializes \textit{out_stream} with \tcode{\&s} and \textit{delim} with \tcode{delimiter}.
2942+
Initializes \textit{out_stream} with \tcode{addressof(s)} and
2943+
\textit{delim} with \tcode{delimiter}.
29412944
\end{itemdescr}
29422945

29432946

0 commit comments

Comments
 (0)