Skip to content

Commit

Permalink
add construction from Exact_rational
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Mar 29, 2024
1 parent d7f9234 commit 33127aa
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 @@ -40,6 +40,10 @@ struct Filtered_rational : boost::totally_ordered1<Filtered_rational
: i(d), rat(d)
{}

explicit Filtered_rational(const Exact_rational& rat)
: i(to_interval(rat)), rat(rat)
{}


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

0 comments on commit 33127aa

Please sign in to comment.