diff --git a/Number_types/include/CGAL/mpq_class.h b/Number_types/include/CGAL/mpq_class.h index bc653c8e955..6a0de04cf8f 100644 --- a/Number_types/include/CGAL/mpq_class.h +++ b/Number_types/include/CGAL/mpq_class.h @@ -273,6 +273,19 @@ public: } }; +// Copied from leda_rational.h +namespace internal { + // See: Stream_support/include/CGAL/IO/io.h + template + void read_float_or_quotient(std::istream & is, ET& et); + + template <> + inline void read_float_or_quotient(std::istream & is, mpq_class& et) + { + internal::read_float_or_quotient(is, et); + } +} // namespace internal + } //namespace CGAL #undef CGAL_CHECK_GMP_EXPR