title: left-hand operand of comma has no effect?
body: <p>I'm having some trouble with this warning message, it is implemented within a template container class</p>
  
  <pre><code>int k = 0, l = 0;
      for ( k =(index+1), l=0; k &lt; sizeC, l &lt; (sizeC-index); k++,l++){
          elements[k] = arryCpy[l];
      }
      delete[] arryCpy;
  </code></pre>
  
  <p>this is the warning i get</p>
  
  <pre><code>cont.h: In member function `void Container&lt;T&gt;::insert(T, int)':
  cont.h:99: warning: left-hand operand of comma has no effect
  cont.h: In member function `void Container&lt;T&gt;::insert(T, int) [with T = double]':
  a5testing.cpp:21:   instantiated from here
  cont.h:99: warning: left-hand operand of comma has no effect
  cont.h: In member function `void Container&lt;T&gt;::insert(T, int) [with T = std::string]':
  a5testing.cpp:28:   instantiated from here
  cont.h:99: warning: left-hand operand of comma has no effect
  &gt;Exit code: 0
  </code></pre>