Add missing parameter; (std::min)

This commit is contained in:
Andreas Fabri 2024-07-16 19:39:10 +01:00
parent 4bc277017c
commit 8ef1f720e4
1 changed files with 3 additions and 3 deletions

View File

@ -82,8 +82,8 @@ public:
CGAL_assertion(dimension() == bbox.dimension()); CGAL_assertion(dimension() == bbox.dimension());
T result = 1; T result = 1;
for(int i=0; i<dimension(); ++i) { for(int i=0; i<dimension(); ++i) {
result *= std::min(max(i), bbox.max(i)) - result *= (std::min)(max(i), bbox.max(i)) -
std::max(min(i), bbox.min(i)); (std::max)(min(i), bbox.min(i));
if (result <= 0) return 0; if (result <= 0) return 0;
} }
return result; return result;
@ -141,7 +141,7 @@ public:
Bbox(int d = 0 ) { init_values(d); this->init(d ); } Bbox(int d = 0 ) { init_values(d); this->init(d ); }
Bbox(int d, const T& range) { init_values(d); this->init(d, range); } Bbox(int d, const T& range) { init_values(d); this->init(d, range); }
template <typename I> template <typename I>
Bbox(int d, I b, I e) { init_values(d); this->init(d, b, ); } Bbox(int d, I b, I e) { init_values(d); this->init(d, b, e); }
protected: protected:
void init_values(int d) { void init_values(int d) {