title: xutility.h error C2064: term does not evaluate to a function taking 2 arguments
body: <p>I've question to ask.</p>
  
  <p>I've created a class called AstarPlanlama and have these 2 functions:</p>
  
  <pre><code>bool AstarPlanlama::nodeComp(const Node* lhs, const Node* rhs) 
  {
     return lhs-&gt;F &lt; rhs-&gt;F;
  }
  
  void AstarPlanlama::enKucukFliNodeBul(std::list&lt;Node*&gt; * OPEN)
  {
      std::list&lt;Node*&gt;::iterator it = std::min_element(OPEN-&gt;begin(), OPEN-&gt;end(), &amp;AstarPlanlama::nodeComp);
  
      OPEN-&gt;sort(&amp;AstarPlanlama::nodeComp);   
  
      Q = OPEN-&gt;front();      
  
      OPEN-&gt;pop_front();      
  }
  </code></pre>
  
  <p>When I compile my code the error occurs in the <strong>xutility.h</strong> file.</p>
  
  <pre><code>template&lt;class _Pr, class _Ty1, class _Ty2&gt; inline
      bool _Debug_lt_pred(_Pr _Pred,
          _Ty1&amp; _Left, _Ty2&amp; _Right,
          _Dbfile_t _File, _Dbline_t _Line)
      {   // test if _Pred(_Left, _Right) and _Pred is strict weak ordering
      if (!_Pred(_Left, _Right))
          return (false);
      else if (_Pred(_Right, _Left))
          _DEBUG_ERROR2("invalid operator&lt;", _File, _Line);
      return (true);
      }
  </code></pre>
  
  <p>Declerations of the functions:</p>
  
  <pre><code>    bool nodeComp(const Node* lhs, const Node* rhs);
  
      void enKucukFliNodeBul(std::list&lt;Node*&gt; * OPEN);
  </code></pre>
  
  <p>The error line is <strong>if (!_Pred(_Left, _Right))</strong></p>
  
  <p>What is wrong with the code?</p>
  
  <p>Thank you for your returns..</p>
  
  <p>My regards..</p>