Skip to content

Commit 80bb1c4

Browse files
jensmaurerzygoloid
authored andcommitted
LWG3079 LWG 2935 forgot to fix the existing_p overloads of create_directory
1 parent 432d9e9 commit 80bb1c4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/iostreams.tex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14800,21 +14800,18 @@
1480014800

1480114801
\begin{itemdescr}
1480214802
\pnum
14803-
\effects Establishes the postcondition by attempting to create the
14803+
\effects Creates the
1480414804
directory \tcode{p} resolves to, with
1480514805
attributes copied from directory \tcode{existing_p}. The set of attributes
14806-
copied is operating system dependent. Creation failure because \tcode{p} resolves to an existing directory shall not be
14807-
treated as an error.
14806+
copied is operating system dependent.
14807+
Creation failure because \tcode{p} already exists is not an error.
1480814808
\begin{note} For POSIX-based operating systems, the
1480914809
attributes are those copied by native API \tcode{stat(existing_p.c_str(), \&attributes_stat)}
1481014810
followed by \tcode{mkdir(p.c_str(), attributes_stat.st_mode)}. For
1481114811
Windows-based operating systems, the attributes are those copied by native
1481214812
API \tcode{CreateDirectoryExW(existing_p.c_str(), p.c_str(), 0)}.
1481314813
\end{note}
1481414814

14815-
\pnum
14816-
\postconditions \tcode{is_directory(p)}.
14817-
1481814815
\pnum
1481914816
\returns \tcode{true} if a new directory was created, otherwise \tcode{false}.
1482014817
The signature with argument \tcode{ec} returns \tcode{false} if an error occurs.

0 commit comments

Comments
 (0)