Remove forbidden downcast
- Oct 25, 2016
-
-
Carsten Gräser authored
The implementation for this was hidden in the base classes before and relied on undefined behaviour by using a downcast. Now it is explicitly implemented for the derived classes which also makes it more visible to users.
-
Carsten Gräser authored
These constructors and assignments from base class are all using a downcast which may result in undefined behaviour. Since this is potentially dangerous and not used anywhere in the core modules, this patch removes those methods.
-
Carsten Gräser authored
These constructors and assignments are all implemented using a downcast to derived class and may lead to undefined behaviour. This commit removes the checks for these methods in preparation for their removal.
-