title: Getting a working C++11 toolchain with OSX & Eclipse without breaking something
body: <p>I am currently starting to work seriously with C++. I've heard about the new features of C++11 and I like them. So I wonder whether I should write my new project according to the new standard. My current toolchain (that comes with XCode, I guess) does not support features like the <code>auto</code> keyword for type inference.</p>
  
  <pre><code>&gt; g++
  
  i686-apple-darwin11-llvm-g++-4.2
  </code></pre>
  
  <p>So I am looking for an easy and safe way to get a C++11 toolchain to try it out. I cannot risk breaking my old toolchain.</p>
  
  <p>I know where to get <a href="http://hpc.sourceforge.net/" rel="nofollow noreferrer">binaries of GCC 4.8 for Mountain Lion</a>, but I don't know how to install all the files manually (and would rather have a package manager do this for me). <a href="https://apple.stackexchange.com/questions/38222/how-do-i-install-gcc-via-homebrew">This discussion</a> explains how to install GCC via homebrew, but I am affraid that this will overwrite and break my existing toolchain. </p>
  
  <p>Also, I do not know how to configure a new toolchain in Eclipse after installation so I can use it with Eclipse/CDT.</p>