Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2008, 12:46:44 PM (16 years ago)
Author:
rgrieder
Message:

Changed conversion_cast≠() to omni_cast≠() and added support for dynamic_cast.
Whenever you want to convert 2 pointers, it uses static_cast if the conversion is implicit (derived to base class) and dynamic_cast otherwise.
There is a drawback however: When static_cast is not possible and at least one of the two pointers is not from a polymorphic class, you get a compiler error that tells you exactly this. But who would want to convert an int* to OrxonoxClass* ?

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.