Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2009, 2:45:37 PM (16 years ago)
Author:
rgrieder
Message:

Found a way to write orxonox_cast<T*> instead of orxonox_cast<T> so that the syntax resembles dynamic_cast<T*>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/Iterator.h

    r3223 r3239  
    240240            {
    241241                if (this->element_)
    242                     return orxonox_cast<T>(this->element_->objectBase_);
     242                    return orxonox_cast<T*>(this->element_->objectBase_);
    243243                else
    244244                    return 0;
     
    252252            {
    253253                if (this->element_)
    254                     return orxonox_cast<T>(this->element_->objectBase_);
     254                    return orxonox_cast<T*>(this->element_->objectBase_);
    255255                else
    256256                    return 0;
Note: See TracChangeset for help on using the changeset viewer.