title: What does "operator = must be a non-static member" mean?
body: <p>I'm in the process of creating a double-linked list, and have overloaded the operator= to make on list equal another:</p>
  
  <pre><code>template&lt;class T&gt;
  void operator=(const list&lt;T&gt;&amp; lst)
  {
      clear();
      copy(lst);
      return;
  }
  </code></pre>
  
  <p>but I get this error when I try to compile:</p>
  
  <pre><code>container_def.h(74) : error C2801: 'operator =' must be a non-static member
  </code></pre>
  
  <p>Also, if it helps, line 74 is the last line of the definition, with the "}".</p>