title: Clang++ and `-mmacosx-version-min=10.6`
body: <p>dummy.cpp:</p>
  
  <pre><code>#include &lt;functional&gt;
  
  void foo(std::function&lt;void(void)&gt; f) {}
  </code></pre>
  
  <p>And the compile command:</p>
  
  <pre><code>clang++  -c  -mmacosx-version-min=10.6  -std=c++11  dummy.cpp -o dummy.o
  </code></pre>
  
  <p>That fails with various errors (<code>std::function</code> is unknown). However, without <code>-mmacosx-version-min=10.6</code>, it works fine.</p>
  
  <p>Why is that? Can I somehow get C++11 support with <code>-mmacosx-version-min=10.6</code>? </p>
  
  <hr>
  
  <p>My current workaround: Use Boost instead for such containers, e.g. <code>boost::function</code>. Other syntactic stuff from C++11 can be used without issues.</p>