title: set of pointers with custom comparator
body: <pre><code>struct classcomp ;      
  
  typedef struct basic{
    int a ;
    set&lt;base*,classcomp&gt; b ;
    int c ;
  } base ;
  
  classcomp{
    bool operator() (const base&amp; *lhs, const base&amp; *rhs) const{
      return (*lhs).a &lt; (*rhs).a;}
  };
  </code></pre>
  
  <p>I want to create a set of pointers of datatype base with comparator function classcomp .where does my code gone wrong.Someone please help</p>