tmp/tmpekcsvx71/{from.md → to.md}
RENAMED
|
@@ -1,18 +1,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
|
| 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
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 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 can 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 revision of C++, however, the declaration of `operator delete`
|
| 14 |
+
might match a predefined usual (non-placement) `operator delete`
|
| 15 |
+
[[basic.stc.dynamic]]. If so, the program is ill-formed, as it was for
|
| 16 |
+
class member allocation functions and deallocation functions
|
| 17 |
+
[[expr.new]].
|
| 18 |
|