title: Expression Syntax Error e2188, C++, Embarcadero, Count_If,
body: <p>I am trying to run a <code>count_if</code> over a <code>vector&lt;int&gt;</code> in C++ Embarcadero Seattle.</p>
  
  <p>The vector was successfully constructed and instantiated with a handful of values, some odd, some even. </p>
  
  <p>I get 'E2188 Expression Syntax' error message over the lambda in this statement</p>
  
  <pre><code>int oddCounter = count_if(v.begin(), v.end(), [](int i){return i%2 != 0;});
  </code></pre>
  
  <p>I have checked a number of sources and I can't find anything wrong with the syntax.  Any ideas?</p>