title: How to enable C++11 compiler on visual studio 2010 express edition?
body: <p>I am using tbb::parallel_for function which make use of lambdas. I am getting syntax errors with the following code:</p>
  
  <pre><code>void parallel_relax( Class object, std::vector&lt;Vertex *&gt; verList ) {
      tbb::parallel_for (blocked_range&lt;int&gt;(0, verList.size()), [=](const blocked_range&lt;Vertex *&gt;&amp; r) {
          for(Vertex *vit = r.begin(); vit != r.end(); ++vit) {
              Vertex *v = vit;
              object.function(v);
          }
      });
  }
  </code></pre>
  
  <p>Syntax Errors:</p>
  
  <pre><code>syntax error : '['
  1&gt;main.cpp(16): error C2143: syntax error : missing ')' before '{'
  1&gt;main.cpp(16): error C2143: syntax error : missing ';' before '{'
  1&gt;main.cpp(17): error C2065: 'r' : undeclared identifier
  1&gt;main.cpp(17): error C2228: left of '.begin' must have class/struct/union
  1&gt;          type is ''unknown-type''
  1&gt;main.cpp(17): error C2065: 'r' : undeclared identifier
  1&gt;main.cpp(17): error C2228: left of '.end' must have class/struct/union
  1&gt;          type is ''unknown-type''
  1&gt;main.cpp(20): error C2059: syntax error : ')'
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>I think this is the problem with the compiler. How do i get c++11 compiler for visual studio 2010 express edition. Please suggest.</p>