Skip to content

Commit

Permalink
add a constructor from Lazy_exact_nt
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Mar 29, 2024
1 parent 33127aa commit f46dea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Number_types/include/CGAL/Filtered_rational.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace CGAL {

struct Filtered_rational;
template <class NT> class Lazy_exact_nt;

template <>
class Algebraic_structure_traits<Filtered_rational>
Expand Down Expand Up @@ -44,6 +45,9 @@ struct Filtered_rational : boost::totally_ordered1<Filtered_rational
: i(to_interval(rat)), rat(rat)
{}

explicit Filtered_rational(const Lazy_exact_nt<Exact_rational>& l)
: i(to_interval(l.exact())), rat(l.exact())
{}

Filtered_rational(const Interval_nt<>& i, const Exact_rational& rat)
: i(i), rat(rat)
Expand Down

0 comments on commit f46dea7

Please sign in to comment.