tmp/tmpq3rj2b1i/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,19 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
feature:** Valid C++14 code may fail to compile or may change meaning in
|
| 6 |
-
this International Standard.
|
| 7 |
-
`std::function` with an allocator is ill-formed and uses-allocator
|
| 8 |
-
construction will not pass an allocator to `std::function` constructors
|
| 9 |
-
in this International Standard.
|
| 10 |
-
|
| 11 |
-
[[util.smartptr.shared]] **Change:** Different constraint on conversions
|
| 12 |
-
from `unique_ptr`. **Rationale:** Adding array support to `shared_ptr`,
|
| 13 |
-
via the syntax `shared_ptr<T[]>` and `shared_ptr<T[N]>`. **Effect on
|
| 14 |
-
original feature:** Valid C++14code may fail to compile or may change
|
| 15 |
-
meaning in this International Standard. For example:
|
| 16 |
|
| 17 |
``` cpp
|
| 18 |
#include <memory>
|
| 19 |
std::unique_ptr<int[]> arr(new int[1]);
|
| 20 |
std::shared_ptr<int> ptr(std::move(arr)); // error: int(*)[] is not compatible with int*
|
|
|
|
| 1 |
+
### [[utilities]]: general utilities library <a id="diff.cpp14.utilities">[[diff.cpp14.utilities]]</a>
|
| 2 |
|
| 3 |
+
**Change:** Constructors taking allocators removed. **Rationale:** No
|
| 4 |
+
implementation consensus. **Effect on original feature:** Valid C++14
|
| 5 |
+
code may fail to compile or may change meaning in this International
|
| 6 |
+
Standard. Specifically, constructing a `std::function` with an allocator
|
| 7 |
+
is ill-formed and uses-allocator construction will not pass an allocator
|
| 8 |
+
to `std::function` constructors in this International Standard.
|
| 9 |
+
|
| 10 |
+
**Change:** Different constraint on conversions from `unique_ptr`.
|
| 11 |
+
**Rationale:** Adding array support to `shared_ptr`, via the syntax
|
| 12 |
+
`shared_ptr<T[]>` and `shared_ptr<T[N]>`. **Effect on original
|
| 13 |
feature:** Valid C++14 code may fail to compile or may change meaning in
|
| 14 |
+
this International Standard. For example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
#include <memory>
|
| 18 |
std::unique_ptr<int[]> arr(new int[1]);
|
| 19 |
std::shared_ptr<int> ptr(std::move(arr)); // error: int(*)[] is not compatible with int*
|