<p>Hm, do you think instead it would work if we moved the Log objects to cli.cpp?  Then we could remove CLIDeleter entirely because we could guarantee that Log and CLI would be in the same translation unit and therefore control the order of destruction.</p>

<p>It seems like this is the better direction to a solution than <a href="https://github.com/mlpack/mlpack/pull/521" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/521" data-id="132899454" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#521</a>, so should we close that PR?</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/pull/524#issuecomment-188799943">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBdtUWPYUCeMlYoqPGTdZiHzQEj1ks5pnwOygaJpZM4HiVT8.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/524#issuecomment-188799943"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>