From Jason Turner

[diff.cpp14.utilities]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmplyw0mwbv/{from.md → to.md} +22 -0
tmp/tmplyw0mwbv/{from.md → to.md} RENAMED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Clause [[utilities]]: general utilities library <a id="diff.cpp14.utilities">[[diff.cpp14.utilities]]</a>
2
+
3
+ [[func.wrap]] **Change:** Constructors taking allocators removed.
4
+ **Rationale:** No implementation consensus. **Effect on original
5
+ feature:** Valid C++14code may fail to compile or may change meaning in
6
+ this International Standard. Specifically, constructing a
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*
21
+ ```
22
+