[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f767cd4 17/33: Fix defect introduced 20190527
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f767cd4 17/33: Fix defect introduced 20190527T1635Z: erroneous documentation |
Date: |
Mon, 3 May 2021 08:15:53 -0400 (EDT) |
branch: master
commit f767cd462bdb0593c1dfbbeed79b6b763205a63a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20190527T1635Z: erroneous documentation
Prepending "fs::" removes a possible source of confusion:
-/// path file("/bin/sh";
-/// path dir ("/usr/bin");
+/// fs::path file("/bin/sh";
+/// fs::path dir ("/usr/bin");
The error in commit eb43e2883951 was:
-/// dir / path; // returns "/bin/sh"
+/// dir / file; // returns "/bin/sh"
^^^^
---
path_utility.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/path_utility.cpp b/path_utility.cpp
index 0228f4c..7a2657a 100644
--- a/path_utility.cpp
+++ b/path_utility.cpp
@@ -37,9 +37,9 @@
/// Change '/path/to/file' to '/some/other/place/file'.
///
/// Motivation: It is anomalous that std::filesystem permits this:
-/// path file("/bin/sh";
-/// path dir ("/usr/bin");
-/// dir / path; // returns "/bin/sh"
+/// fs::path file("/bin/sh";
+/// fs::path dir ("/usr/bin");
+/// dir / file; // returns "/bin/sh"
/// where true == file.is_absolute().
///
/// Arguably the arguments should be given in the opposite order:
- [lmi-commits] [lmi] master updated (a5afa42 -> 0296ac4), Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master c8143ad 02/33: Include "path.hpp" even if it might not be needed today, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 1ac62bc 13/33: Rewrite a unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master cff71ea 11/33: Improve documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master f767cd4 17/33: Fix defect introduced 20190527T1635Z: erroneous documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master 325e88a 12/33: Increase filename portability, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 271a1b8 09/33: Note a deferred boost-migration question, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 2025958 06/33: Names are stronger than comments, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master bb267b7 18/33: Reinstate some recently-removed documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 6d7a545 26/33: Reinsert a required empty line, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master ea4515f 04/33: Further deboostify, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4faab10 01/33: Adjust whitespace for microconcinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master f4f4756 05/33: Resolve a marked defect [283], Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master c98c00d 10/33: Say "basename" rather than "leaf", Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 1a68606 23/33: Conserve 80-character maximum width, Greg Chicares, 2021/05/03