CMakeLists -fno-rtti Flag

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?

 

Best reply by tiramisu

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?

View original
2 replies