示例#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);
 }