[mlpack-git] [mlpack] static assertion failed: HRectBound can only be used with the LMetric<> metric type. (#525)
Li Dong
notifications at github.com
Fri Feb 26 21:09:03 EST 2016
When I changed `bound::BallBound<2>` to `bound::BallBound<metric::LMetric<2>>`, that error is gone, but there is still error with `bound::HRectBound<metric::LMetric<2>>`. I think it is caused by the static assert in `hrectbound.hpp`:
```
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
```
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/525#issuecomment-189557056
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160226/ef2ca506/attachment.html>
More information about the mlpack-git
mailing list