Ignore:
Timestamp:
Mar 21, 2008, 2:23:20 PM (16 years ago)
Author:
dai_9181
Message:

共変戻り値のオーバーロードをサポートした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp

    r424 r447  
    150150    }
    151151    return false;
     152}
     153
     154bool Type::IsCovariant( const Type &type ) const
     155{
     156    if( !this->IsObject() || !type.IsObject() )
     157    {
     158        // 共変性の判別はクラス型のみ
     159        return false;
     160    }
     161
     162    return this->GetClass().IsSubClass( &type.GetClass() );
    152163}
    153164
Note: See TracChangeset for help on using the changeset viewer.