Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Both an old-style cast and a reinterpret_cast may be used to cast a pointer to an incomplete class. However, the cast may result in a bad address.

Code Block
bgColor#FFcccc
langcpp
class D : public SomeClass, public B {
    // ...
};

B *getMeSomeSortOfB() { return new D; }

...