tmp/tmp5y0wgfh0/{from.md → to.md}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
``` cpp
|
| 9 |
void* operator new(std::size_t, std::size_t);
|
| 10 |
void operator delete(void*, std::size_t) noexcept;
|
| 11 |
```
|
| 12 |
|
| 13 |
In this International Standard, however, the declaration of
|
| 14 |
`operator delete` might match a predefined usual (non-placement)
|
| 15 |
-
`operator delete`
|
| 16 |
ill-formed, as it was for class member allocation functions and
|
| 17 |
-
deallocation functions
|
| 18 |
|
|
|
|
| 1 |
+
### [[basic]]: basics <a id="diff.cpp11.basic">[[diff.cpp11.basic]]</a>
|
| 2 |
|
| 3 |
+
**Change:** New usual (non-placement) deallocator. **Rationale:**
|
| 4 |
+
Required for sized deallocation. **Effect on original feature:** Valid
|
| 5 |
+
C++11 code could declare a global placement allocation function and
|
| 6 |
+
deallocation function as follows:
|
| 7 |
|
| 8 |
``` cpp
|
| 9 |
void* operator new(std::size_t, std::size_t);
|
| 10 |
void operator delete(void*, std::size_t) noexcept;
|
| 11 |
```
|
| 12 |
|
| 13 |
In this International Standard, however, the declaration of
|
| 14 |
`operator delete` might match a predefined usual (non-placement)
|
| 15 |
+
`operator delete` [[basic.stc.dynamic]]. If so, the program is
|
| 16 |
ill-formed, as it was for class member allocation functions and
|
| 17 |
+
deallocation functions [[expr.new]].
|
| 18 |
|