title: error C2106: '=' : left operand must be l-value
body: <p>Looking at the other questions regarding error C2106, I am still lost as to what the issue is with my code. While compiling I get the following errors:</p>
  <blockquote>
  <p>c:\driver.cpp(99): error C2106: '=' : left operand must be l-value</p>
  <p>c:\driver.cpp(169): error C2106: '=' : left operand must be l-value</p>
  </blockquote>
  <p>The line of code is as follows:</p>
  <pre><code>payroll.at(i) = NULL; //Line 99
  payroll.at(count++) = ePtr; //Line 169
  </code></pre>
  <p>I am failing to understand why this error is being thrown. In this project I have changed my driver.cpp from an array of employee object pointers to a custom Vector template that I made. I declare the Vector as follows...</p>
  <pre><code>//Declare an Vector to hold employee object pointers
  MyVector &lt;employee*&gt; payroll;
  </code></pre>
  <p>Any help is appreciated...</p>