From d64e68c8bceff08f4773553d8b6cd920328545cc Mon Sep 17 00:00:00 2001 From: Thomas Capricelli Date: Fri, 12 Nov 2010 11:33:09 +0100 Subject: fix doc compilation --- unsupported/doc/examples/BVH_Example.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unsupported/doc') diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp index 9e9959a32..6b6fac075 100644 --- a/unsupported/doc/examples/BVH_Example.cpp +++ b/unsupported/doc/examples/BVH_Example.cpp @@ -5,7 +5,11 @@ using namespace Eigen; typedef AlignedBox Box2d; -Box2d internal::bounding_box(const Vector2d &v) { return Box2d(v, v); } //compute the bounding box of a single point +namespace Eigen { + namespace internal { + Box2d bounding_box(const Vector2d &v) { return Box2d(v, v); } //compute the bounding box of a single point + } +} struct PointPointMinimizer //how to compute squared distances between points and rectangles { -- cgit v1.2.3