Skip to content

Commit 5eb6209

Browse files
committed
[multi precision] avoid constexpr which is not supported by boost multiprecision
1 parent bce027f commit 5eb6209

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/boost/geometry/algorithms/detail/buffer/line_line_intersection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct line_line_intersection
7777
// | pa pa |
7878
// | qb qb |
7979
auto const denominator_pq = determinant<line, &line::a, &line::b>(p, q);
80-
constexpr decltype(denominator_pq) const zero = 0;
80+
static decltype(denominator_pq) const zero = 0;
8181

8282
if (equidistant)
8383
{

include/boost/geometry/strategies/cartesian/side_rounded_input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct side_rounded_input
4747
coor_t const p_x = geometry::get<0>(p);
4848
coor_t const p_y = geometry::get<1>(p);
4949

50-
constexpr coor_t eps = std::numeric_limits<coor_t>::epsilon() / 2;
50+
static coor_t const eps = std::numeric_limits<coor_t>::epsilon() / 2;
5151
coor_t const det = (p1_x - p_x) * (p2_y - p_y) - (p1_y - p_y) * (p2_x - p_x);
5252
coor_t const err_bound = (Coeff1 * eps + Coeff2 * eps * eps) *
5353
( (geometry::math::abs(p1_x) + geometry::math::abs(p_x))

0 commit comments

Comments
 (0)