tmp/tmp41x3ne05/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
int f(char *) = delete;
|
| 13 |
int f(const char *);
|
| 14 |
string s;
|
|
|
|
| 1 |
+
### [[strings]]: strings library <a id="diff.cpp14.string">[[diff.cpp14.string]]</a>
|
| 2 |
|
| 3 |
+
**Change:** Non-const `.data()` member added. **Rationale:** The lack of
|
| 4 |
+
a non-const `.data()` differed from the similar member of `std::vector`.
|
| 5 |
+
This change regularizes behavior for this International Standard.
|
| 6 |
+
**Effect on original feature:** Overloaded functions which have
|
| 7 |
+
differing code paths for `char*` and `const char*` arguments will
|
| 8 |
+
execute differently when called with a non-const string’s `.data()`
|
| 9 |
+
member in this International Standard.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
int f(char *) = delete;
|
| 13 |
int f(const char *);
|
| 14 |
string s;
|