1
General / Re: Problems with void pointer and sf::Transformable
« on: May 29, 2017, 09:04:11 pm »
Not only a pracmatic, but the correct view.
Better Google usage would have eased my search: https://stackoverflow.com/questions/2379427/multiple-inheritance-unexpected-result-after-cast-from-void-to-2nd-base-class
Thanks and sorry for my bad research.
I guess I have to scrap the void pointer and come up with a better (typesafe) storage.
Most likely the member variable approach.
Always knew, I couldn't trust thoose darn void pointers.
Seemed too easy...
Sidenote: I really like the multi inheritance idea (no really I think it's rather clever), but also curse it in many situations.
Better Google usage would have eased my search: https://stackoverflow.com/questions/2379427/multiple-inheritance-unexpected-result-after-cast-from-void-to-2nd-base-class
Thanks and sorry for my bad research.
I guess I have to scrap the void pointer and come up with a better (typesafe) storage.
Most likely the member variable approach.
Always knew, I couldn't trust thoose darn void pointers.
Seemed too easy...
Sidenote: I really like the multi inheritance idea (no really I think it's rather clever), but also curse it in many situations.