aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/BVH.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-09 03:41:17 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-09 03:41:17 +0000
commiteac79b6d2e0a4feeccf7e5936cd972fdc4a74ac7 (patch)
tree849253df47b33f5a2b3b6e80ad8a4a2b929692e1 /unsupported/test/BVH.cpp
parent3b79d99f715bd9e1b21859f5ef2f274f1294df32 (diff)
CREDIT Hauke Heibel, fix MSVC warnings
Diffstat (limited to 'unsupported/test/BVH.cpp')
-rw-r--r--unsupported/test/BVH.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/BVH.cpp b/unsupported/test/BVH.cpp
index 879daacc2..ea03c2d24 100644
--- a/unsupported/test/BVH.cpp
+++ b/unsupported/test/BVH.cpp
@@ -22,8 +22,8 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see <http://www.gnu.org/licenses/>.
-#include <Eigen/StdVector>
#include "main.h"
+#include <Eigen/StdVector>
#include <unsupported/Eigen/BVH>
inline double SQR(double x) { return x * x; }
@@ -43,7 +43,7 @@ EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(double, Dim)
};
-template<int Dim> AlignedBox<double, Dim> ei_bounding_box(const Matrix<double, Dim, 1> &v) { return AlignedBox<double, Dim>(v); }
+template<typename Scalar, int Dim> AlignedBox<Scalar, Dim> ei_bounding_box(const Matrix<Scalar, Dim, 1> &v) { return AlignedBox<Scalar, Dim>(v); }
template<int Dim> AlignedBox<double, Dim> ei_bounding_box(const Ball<Dim> &b)
{ return AlignedBox<double, Dim>(b.center.cwise() - b.radius, b.center.cwise() + b.radius); }