Skip to content

Commit

Permalink
[fix] replace decltype by typename for some compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
barendgehrels committed Mar 23, 2024
1 parent 425263e commit 9a063c0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,13 @@ inline void enlarge_sections(Sections& sections, Strategy const&)
// - for Boost.Multiprecision (50) :~ 5.35e-48
// - for Boost.Rational : 0/1

using section_t = typename boost::range_value<Sections>::type;
using box_t = typename section_t::box_type;
using coor_t = typename geometry::coordinate_type<box_t>::type;
static auto const eps = math::scaled_epsilon<coor_t>(1000);

for (auto& section : sections)
{
using gt = decltype(section.bounding_box);
using ct = typename geometry::coordinate_type<gt>::type;
static ct const eps = math::scaled_epsilon<ct>(1000);
expand_by_epsilon(section.bounding_box, eps);
}
}
Expand Down

0 comments on commit 9a063c0

Please sign in to comment.