diff --git a/Frechet_distance/test/Frechet_distance/Frechet_distance_test.cpp b/Frechet_distance/test/Frechet_distance/Frechet_distance_test.cpp index c88faa02acbe..c08972c694ad 100644 --- a/Frechet_distance/test/Frechet_distance/Frechet_distance_test.cpp +++ b/Frechet_distance/test/Frechet_distance/Frechet_distance_test.cpp @@ -71,6 +71,9 @@ static TestCurves readCurves(std::string const& curve_directory) // read filenames of curve files std::ifstream file(curve_directory + "dataset.txt"); + + std::cout << "Trying to read " << curve_directory << "dataset.txt\n"; + assert(file); std::string line; @@ -82,6 +85,7 @@ static TestCurves readCurves(std::string const& curve_directory) curves.reserve(curve_filenames.size()); for (auto const& curve_filename : curve_filenames) { std::ifstream curve_file(curve_directory + curve_filename); + std::cout << " " << curve_directory + curve_filename << "\n"; assert(curve_file); curves.emplace_back(); diff --git a/Number_types/include/CGAL/Sqrt_extension/Sqrt_extension_type.h b/Number_types/include/CGAL/Sqrt_extension/Sqrt_extension_type.h index 98318babf486..dca6500344ca 100644 --- a/Number_types/include/CGAL/Sqrt_extension/Sqrt_extension_type.h +++ b/Number_types/include/CGAL/Sqrt_extension/Sqrt_extension_type.h @@ -146,6 +146,20 @@ class Sqrt_extension : public internal::Interval_optional_caching, return *this; } + Sqrt_extension& + operator=(const NT& i) + { + *this = Sqrt_extension(i); + return *this; + } + + Sqrt_extension& + operator=(CGAL_int(NT) i) + { + *this = Sqrt_extension(i); + return *this; + } + //non-documented: used for Make_sqrt Sqrt_extension(const ROOT& root,bool) :a0_(NT(0)), a1_(NT(1)), root_(root), is_extended_(true) {}