Skip to content

Commit

Permalink
disambiguate =
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jan 3, 2025
1 parent 890b631 commit 99c9193
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down
14 changes: 14 additions & 0 deletions Number_types/include/CGAL/Sqrt_extension/Sqrt_extension_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@ class Sqrt_extension : public internal::Interval_optional_caching<FP_TAG>,
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) {}
Expand Down

0 comments on commit 99c9193

Please sign in to comment.