Sorry, i've missed the second half of your posting. Anyway, the old behaviour should be considered as a bug, not a new one.
Sergio Zykov
Posts
-
dynamic_cast changed behavior in VS5 -
What is the size of my log file?One year ago i've discovered the following diamond: Variable names are mine because original was meaningless.
void superPupelMegaRobustMethod() { Thread watchdog = new WatchdogThread().start(); ... watchdog.stop(); } .. void run() { // watchdog loop boolean timeElapsed = false; while(true) { if (timeElapsed) () { new Thread() { .... superPupelMegaRobustMethod(); ..... }.start(); } Thread.sleep(1000); timeElapsed = true; } }
-
dynamic_cast changed behavior in VS5You should derive this class in this way
class DerivedClass : public BaseClass { ... };
By default, the inheritance of 'class' symbols are private and, according to C++ standard, the derived class is not a sublass of its privately inherited superclass. In different words, private inhertance is the inheritance of the base class' implementation and public inheritance is the inheritance of the base class' interface.