예제 #1
0
파일: main.cpp 프로젝트: Drmshow/md-blog
void main_part_0(){
    {
        assert0<is_derived_from(BarBase, BarDerived)> _unname;
    }
    {
        assert0<is_derived_from(BarBase, Foo)> _unname;
    }
}
예제 #2
0
파일: main.cpp 프로젝트: Drmshow/md-blog
void main_part_1(){
    assert2(
        is_derived_from(BarBase, BarDerived),
        Is_Not_Derived
    );
    assert2(
        is_derived_from(BarBase, Foo),
        Is_Not_Derived
    );
}
예제 #3
0
파일: descriptor.hpp 프로젝트: 8l/Mach7
 bool operator<(const ClassDescriptor& cd) const 
 { 
     if (this == &cd)
         return false;
     else
         return is_derived_from(&cd) || (!cd.is_derived_from(this) && name < cd.name);
 }