<p>When I changed <code>bound::BallBound<2></code> to <code>bound::BallBound<metric::LMetric<2>></code>, that error is gone, but there is still error with <code>bound::HRectBound<metric::LMetric<2>></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<typename MetricType>
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<int Power, bool TakeRoot>
39 struct IsLMetric<metric::LMetric<Power, TakeRoot>>
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;">—<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>