FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
07-12-2022 12:04 PM
In the CMakeLists of the sample projects the compiler flag -fno-rtti is set. This means that dynamic casts are no longer possible. Can this line be deleted or can this lead to other problems?
Solved! Go to Solution.
07-15-2022 11:54 AM
Normaly runtime type information is not necessary in good code. When you have to use dynamic cast in your code it seams that there is something wrong with your design.
So, why do you need dynamic casts?
Could it be that there is a better soloution to avoid it?
09-01-2022 11:33 AM
We use dynamic casts to check whether derived objects belong to a particular object of the parent class.