Rainer Deyke wrote:
Andrei Alexandrescu wrote:
The issues are discussed in the book C++ Coding Standards and also in
More Effective C++. Part of the problem is slicing, which you may want
to google for. MEC++ discusses the problem of defining constructors and
particularly copy constructors in hierarchies. Assignment and comparison
are also problematic.
Yes, C++ has problems, but these problems can be fixed!
How? Minding constantly a set of dangerous problems is not fixing it.
The
struct/class split, on the other hand, introduces many more problems
that are harder to fix.
Again: what are those problems?
Andrei