title: Error: no match for 'operator!='
body: <pre><code>void super::findTarget(list&lt;int&gt;Dlist,list&lt;super&gt;::iterator t){
  
  while(t != Dlist.end()){
   double mypos[3];
   double target[3];
   double fpos[3];
   double speed;
   double range;
   double a, b, c, D;
  
   mypos[0]=this-&gt;x;
   mypos[1]=this-&gt;y;
   mypos[2]=this-&gt;z;
   range = this-&gt;range;
  
   target[0]=t-&gt;x;
   target[1]=t-&gt;y;
   target[2]=t-&gt;z;
  
   a = target[0]-mypos[0];
   b = target[1]-mypos[1];
   c = target[2]-mypos[2];
  
   D = sqrt( pow(a,2.0)+pow(b,2.0)+pow(c,2.0));
   Dlist.push_back(D);
     };
  };
  </code></pre>
  
  <p>On the 2nd line, <code>while (t != Dlist.end(){</code>, I'm getting the following error:</p>
  
  <blockquote>
    <p>C:\Users\Daniel\Desktop\project\super.cpp|369|error: no match for 'operator!=' in 't != Dlist.std::list&lt;_Tp, _Alloc>::end >()'|</p>
  </blockquote>
  
  <p>Am I just not allowed to do this inside of a function or am I missing something?</p>