title: How to remove trailing 0's from C++ Vector
body: <p>I'm trying to remove trailing zero's from a C++ vector using a while loop with pop_back. If the last element of the vector is 0, it should pop back the last element, until it is not 0 anymore. </p>
  
  <p>It's hard to understand what the errors mean, I would really appreciate it if someone more wise can help decipher these errors for me please!</p>
  
  <pre><code>void Integer::unzero() {
  
    while ((*this).bits_vector[((*this).bits_vector.size)] == 0) {
      (*this).bits_vector.pop_back;
    }
  } 
  </code></pre>
  
  <p>errors: </p>
  
  <pre><code>error C2679: binary '[': no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
  
  error C3867: 'std::vector&lt;bool,std::allocator&lt;_Ty&gt;&gt;::pop_back': non-standard syntax; use '&amp;' to create a pointer to member
  </code></pre>