Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: S::f()

...

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

...

Code Block
bgColor#ccccff
langcpp
#include <new>

struct S {
  void f();
};

void S::f() noexcept(false) {
  S *s = new S;
  // ...
  s->f();
  delete s;
}

...

Code Block
bgColor#ccccff
langcpp
struct S {
  void f();
};

void S::f() {
  S s;
  // ...
  s.f();
}

...