<p>So far I have backported these files:</p>

<pre><code>bernoulli.hpp
math_fwd.hpp
policy.hpp
polygamma.hpp
trigamma.hpp
detail/bernoulli_details.hpp
detail/polygamma.hpp
detail/unchecked_bernoulli.hpp
</code></pre>

<p>In some of these (<code>bernoulli.hpp</code>, <code>detail/unchecked_bernoulli.hpp</code>, <code>trigamma.hpp</code>) the file <code>math_fwd.hpp</code> was included, which contains forward declarations. This was supposed to stop the "xyz is not a member of boost::math::..." errors, but in many cases it didn't. I don't understand why, since that file did contain all the forward declarations these files are unable to see.</p>

<p>Anyway, I started hard-coding the declarations by hand at the top of files. This resolved a number of errors, I'll keep doing it to see if I can end up with a passing build.</p>

<p>If, though, someone has any insight as to why this is happening, I would be very happy to implement a simpler solution, both because my fix is ugly and because I'm not sure it will ever work.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/729#issuecomment-234227523">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFMaGN3teB93mOXbNDT6F_bJ-Rxrqks5qX1f4gaJpZM4JQqXp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFL0CKuYa27HjrRwCxXEkb4z9q8fIks5qX1f4gaJpZM4JQqXp.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/pull/729#issuecomment-234227523"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>