title: Using homebrew, gcc and llvm with C++ 11
body: <p>Here's my problem: I want to use C++11 features provided by either gcc or clang. However, I have these requirements:</p>
  
  <ol>
  <li>I'm using a mac</li>
  <li>I'm dependent on a bunch of libraries provided by homebrew (and <em>really</em> don't want to compile them myself). Specifically OSG, which itself is dependent on a ton of other libraries. And boost, though I can always compile that myself.</li>
  </ol>
  
  <p>Homebrew seems to only want to use gcc (please correct me if I'm wrong). I can't find any options to switch to LLVM instead. While I understand that this might be due to the fact that not all libraries are compatible with LLVM yet, this would still be a nice feature for those that are.</p>
  
  <p>The version of gcc that comes pre-installed on a mac of gcc is 4.2. gcc 4.2 doesn't have the c++11 features required. I've installed 4.7 via homebrew, but searches for how to set homebrew to use it all say don't do it (gcc 4.2 on the mac is not the vanilla version, so the 4.7 version I got won't be able to compile some things).</p>
  
  <p>My questions are: Does anyone have any suggestions or fixes they have implemented to get around this problem? Should I give up on Homebrew? Does anyone know if Homebrew has a plan to switch to LLVM in the future? Does anyone have any upgrade-plan for how to deal with these incompatibilities?</p>
  
  <p>I don't see how homebrew can continue to depend on gcc 4.2 in the long run, but haven't found any real discussion on this matter.</p>