From Jason Turner

[diff.cpp14.string]

Diff to HTML by rtfpessoa

tmp/tmpe0mqcfo8/{from.md → to.md} RENAMED
@@ -3,15 +3,18 @@
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. **Effect on original feature:**
6
  Overloaded functions which have differing code paths for `char*` and
7
  `const char*` arguments will execute differently when called with a
8
- non-const string’s `.data()` member in this revision of C++. For
9
- example:
 
10
 
11
  ``` cpp
12
  int f(char *) = delete;
13
  int f(const char *);
14
  string s;
15
  int x = f(s.data()); // ill-formed; previously well-formed
16
  ```
17
 
 
 
 
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. **Effect on original feature:**
6
  Overloaded functions which have differing code paths for `char*` and
7
  `const char*` arguments will execute differently when called with a
8
+ non-const string’s `.data()` member in this revision of C++.
9
+
10
+ [*Example 1*:
11
 
12
  ``` cpp
13
  int f(char *) = delete;
14
  int f(const char *);
15
  string s;
16
  int x = f(s.data()); // ill-formed; previously well-formed
17
  ```
18
 
19
+ — *end example*]
20
+