Pods/Realm/include/realm/query_expression.hpp
Compare(TLeft& left, const TRight& right, bool auto_delete = false, const char* compare_string = nullptr) :
            m_left(left), m_right(const_cast<TRight&>(right)), m_compare_string(compare_string)
    {
        m_auto_delete = auto_delete;
        Query::expression(this, auto_delete);
        Table* t = const_cast<Table*>(get_table()); // todo, const

        if (t)
            Query::m_table = t->get_table_ref();
    }
// Compare extends Expression which extends Query. This constructor for Compare initializes the Query part by
// adding an ExpressionNode (see query_engine.hpp) and initializes Query::table so that it's ready to call
// Query methods on, like find_first(), etc.
Compare extends Expression which extends Query. This constructor for Compare initializes the Query part by
adding an ExpressionNode  and initializes Query::table so that it's ready to call
Query methods on, like find_first(), etc.
Compare extends Expression which extends Query . This constructor for Compare initializes the Query part by adding an ExpressionNode and initializes Query :: table so that it ' s ready to call Query methods on like find_first () etc .
Compare(TLeft& left, const TRight& right, bool auto_delete = false, const char* compare_string = nullptr) :
            m_left(left), m_right(const_cast<TRight&>(right)), m_compare_string(compare_string)
    {
        m_auto_delete = auto_delete;
        Query::expression(this, auto_delete);
        Table* t = const_cast<Table*>(get_table()); 
        if (t)
            Query::m_table = t->get_table_ref();
    }
Compare ( TLeft & left , const TRight & right , bool auto_delete = false , const char * compare_string = nullptr ) : m_left ( left ) , m_right ( const_cast < TRight & > ( right ) ) , m_compare_string ( compare_string ) { m_auto_delete = auto_delete ; Query :: expression ( this , auto_delete ) ; Table * t = const_cast < Table * > ( get_table ( ) ) ; if ( t ) Query :: m_table = t -> get_table_ref ( ) ; }
Compare extends Expression which extends Query.
Compare extends Expression which extends Query .
// todo, const