Skip to content

Commit

Permalink
Wrap std::max in parens to avoid problems with VC++
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jul 31, 2020
1 parent b89e131 commit 774c1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Octree/include/CGAL/Octree.h
Expand Up @@ -179,7 +179,7 @@ class Octree {
FT x_len = bbox.xmax() - bbox.xmin();
FT y_len = bbox.ymax() - bbox.ymin();
FT z_len = bbox.zmax() - bbox.zmin();
FT max_len = std::max({x_len, y_len, z_len});
FT max_len = (std::max)({x_len, y_len, z_len});
bbox = Iso_cuboid(bbox.min(), bbox.min() + max_len * Vector(1.0, 1.0, 1.0));

// Shift the squared box to make sure it's centered in the original place
Expand Down

0 comments on commit 774c1ab

Please sign in to comment.