Skip to content

Commit 588357e

Browse files
author
Dawn Perchik
committed
LWG2937 Is equivalent("existing_thing", "not_existing_thing") an error?
1 parent 6e8b0d0 commit 588357e

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

source/iostreams.tex

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14313,25 +14313,22 @@
1431314313

1431414314
\begin{itemdescr}
1431514315
\pnum
14316-
Let \tcode{s1} and \tcode{s2} be \tcode{file_status}s, determined
14317-
as if by \tcode{status(p1)} and \tcode{status(p2)}, respectively.
14318-
14319-
\pnum
14320-
\effects Determines \tcode{s1} and \tcode{s2}.
14321-
If \tcode{(!exists(s1) \&\& !exists(s2)) || (is_other(s1) \&\& is_other(s2))}
14322-
an error is reported~(\ref{fs.err.report}).
14323-
14324-
\pnum
14325-
\returns \tcode{true}, if \tcode{s1 == s2} and \tcode{p1} and \tcode{p2} resolve to the same file
14316+
\returns \tcode{true}, if \tcode{p1} and \tcode{p2} resolve to the same file
1432614317
system entity, else \tcode{false}. The signature with argument \tcode{ec}
1432714318
returns \tcode{false} if an error occurs.
1432814319

1432914320
\pnum
1433014321
Two paths are considered to resolve to the same file system entity if two
14331-
candidate entities reside on the same device at the same location. This is
14322+
candidate entities reside on the same device at the same location.
14323+
\begin{note}
14324+
On POSIX platforms, this is
1433214325
determined as if by the values of the POSIX \tcode{stat} structure,
1433314326
obtained as if by \tcode{stat()} for the two paths, having equal \tcode{st_dev} values
1433414327
and equal \tcode{st_ino} values.
14328+
\end{note}
14329+
14330+
\pnum
14331+
\remarks \tcode{!exists(p1) || !exists(p2)} is an error.
1433514332

1433614333
\pnum
1433714334
\throws As specified in~\ref{fs.err.report}.

0 commit comments

Comments
 (0)