<p>When I changed <code>bound::BallBound&lt;2&gt;</code> to <code>bound::BallBound&lt;metric::LMetric&lt;2&gt;&gt;</code>, that error is gone, but there is still error with <code>bound::HRectBound&lt;metric::LMetric&lt;2&gt;&gt;</code>. I think it is caused by the static assert in <code>hrectbound.hpp</code>:</p>

<pre><code> 29 //! Utility struct where Value is true if and only if the argument is of type
 30 //! LMetric.
 31 template&lt;typename MetricType&gt;
 32 struct IsLMetric
 33 {
 34   static const bool Value = false;
 35 };
 36 
 37 //! Specialization for IsLMetric when the argument is of type LMetric.
 38 template&lt;int Power, bool TakeRoot&gt;
 39 struct IsLMetric&lt;metric::LMetric&lt;Power, TakeRoot&gt;&gt;
 40 {
 41   static const bool Value = true;
 42 };
 43 
 44 } // namespace util
</code></pre>

<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/525#issuecomment-189557056">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJJxJK4JCjGKWaUDyxEThv3IuFCGks5poPy_gaJpZM4HidHM.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/525#issuecomment-189557056"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>