<p>Since we are using C++11 features we link against libstdc++ when using clang. libstdc++ is tried-and-tested, but it is a dead end on OSX that results in some problems like:</p>

<p><code>error: no template named 'forward' in namespace 'std';</code></p>

<p>Due to Apple not upgrading past GCC 4.2 for license reasons, Apple switched the standard library, so clang++ started to link against libc++ rather than libstdc++. The good news is that libc++ is specifically designed so that we can use it in the same process as libstdc++.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/426">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFpx8O7bDxpf997cVbojnGzMq1E5ks5n5p_hgaJpZM4D2WRd.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/426"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>