From Jason Turner

[diff.cpp14.utilities]

Diff to HTML by rtfpessoa

tmp/tmpt17p5drh/{from.md → to.md} RENAMED
@@ -1,19 +1,19 @@
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*
 
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 revision of C++.
6
+ Specifically, constructing a `std::function` with an allocator is
7
+ ill-formed and uses-allocator construction will not pass an allocator to
8
+ `std::function` constructors in this revision of C++.
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 revision of C++. 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*