From f17a6a867410fc76e24cadec783a20f7c9c532ef Mon Sep 17 00:00:00 2001 From: oan Date: Fri, 31 May 2019 10:44:43 +0300 Subject: [PATCH] Replace std::tie by old-style code to fix compilation issues --- include/delaunator.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/delaunator.hpp b/include/delaunator.hpp index 6bc5221..5f1625d 100644 --- a/include/delaunator.hpp +++ b/include/delaunator.hpp @@ -300,7 +300,9 @@ Delaunator::Delaunator(std::vector const& in_coords) std::swap(i1y, i2y); } - std::tie(m_center_x, m_center_y) = circumcenter(i0x, i0y, i1x, i1y, i2x, i2y); + std::pair aCenter = circumcenter (i0x, i0y, i1x, i1y, i2x, i2y); + m_center_x = aCenter.first; + m_center_y = aCenter.second; // sort the points by distance from the seed triangle circumcenter std::sort(ids.begin(), ids.end(), compare{ coords, m_center_x, m_center_y });