Beispiel #1
0
 virtual bool Compare(const Imp& imp) const
 {
    ConstCastVisitor_T<ElementTypeT> castVisitor;
    imp.Accept(castVisitor);
    return castVisitor.m_pElement &&
           m_Element == *castVisitor.m_pElement;
 }
Beispiel #2
0
 bool Compare(const Imp& imp) const
 {
    CastVisitor<const ElementTypeT> castVisitor;
    imp.Accept(castVisitor);
    return castVisitor.element && m_Element == *castVisitor.element;
 }