...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <new>
struct S {
void f();
};
void S::f() noexcept(false) {
S *s = new S;
// ...
delete s;
// ...
s->f();
}
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <new>
struct S {
void f();
};
void S::f() noexcept(false) {
S *s = new S;
// ...
s->f();
delete s;
} |
...
Code Block | ||||
---|---|---|---|---|
| ||||
struct S {
void f();
};
void S::f() {
S s;
// ...
s.f();
} |
...