Skip to content

Commit 7f0fff2

Browse files
burblebeetkoeppe
authored andcommitted
LWG3171 LWG2989 breaks directory_entry stream insertion
1 parent 05c6173 commit 7f0fff2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/iostreams.tex

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14219,6 +14219,11 @@
1421914219
bool operator==(const directory_entry& rhs) const noexcept;
1422014220
strong_ordering operator<=>(const directory_entry& rhs) const noexcept;
1422114221

14222+
// \ref{fs.dir.entry.io}, inserter
14223+
template<class charT, class traits>
14224+
friend basic_ostream<charT, traits>&
14225+
operator<<(basic_ostream<charT, traits>& os, const directory_entry& d);
14226+
1422214227
private:
1422314228
filesystem::path pathobject; // \expos
1422414229
friend class directory_iterator; // \expos
@@ -14637,6 +14642,21 @@
1463714642
\tcode{pathobject <=> rhs.pathobject}.
1463814643
\end{itemdescr}
1463914644

14645+
\rSec3[fs.dir.entry.io]{Inserter}
14646+
14647+
\indexlibrarymember{operator<<}{directory_entry}%
14648+
\begin{itemdecl}
14649+
template<class charT, class traits>
14650+
friend basic_ostream<charT, traits>&
14651+
operator<<(basic_ostream<charT, traits>& os, const directory_entry& d);
14652+
\end{itemdecl}
14653+
14654+
\begin{itemdescr}
14655+
\pnum
14656+
\effects
14657+
Equivalent to: \tcode{return os << d.path();}
14658+
\end{itemdescr}
14659+
1464014660
\rSec2[fs.class.directory.iterator]{Class \tcode{directory_iterator}}
1464114661

1464214662
\rSec3[fs.class.directory.iterator.general]{General}

0 commit comments

Comments
 (0)