title: Compile C++11 code on mac?
body: <p>I'm new to C++11. I've tried:</p>
  
  <p><code>clang++ -std=c++11 -stdlib=libc++ *.cc</code></p>
  
  <p>It works, but my questions is: </p>
  
  <ol>
  <li>Is there anyway to set these flag as default for clang++?</li>
  <li>How to update g++ 4.2 to a version that supports C++11?</li>
  <li>Which way do you think it's the best to compile C++11 code on mac?</li>
  </ol>
  
  <p>Thanks.</p>