Skip to content

Fixes issue #6446 - approx_adv broken and unused in Lazy_exact_nt#9352

Open
RajdeepKushwaha5 wants to merge 1 commit intoCGAL:mainfrom
RajdeepKushwaha5:fix/lazy-exact-nt-remove-approx-adv
Open

Fixes issue #6446 - approx_adv broken and unused in Lazy_exact_nt#9352
RajdeepKushwaha5 wants to merge 1 commit intoCGAL:mainfrom
RajdeepKushwaha5:fix/lazy-exact-nt-remove-approx-adv

Conversation

@RajdeepKushwaha5
Copy link
Contributor

Issue #6446 - approx_adv broken and unused in Lazy_exact_nt

Issue: #6446

Problem: Lazy_exact_nt<ET>::approx_adv() (lines 546-547 of Number_types/include/CGAL/Lazy_exact_nt.h) accessed this->ptr() which is a private member of the Lazy base class, causing a compile error under any instantiation. The function is not documented, has no tests, and has zero callers across the entire codebase.

Fix: Removed the approx_adv() method entirely. Users who need an Interval_nt_advanced (Interval_nt<false>) from a Lazy_exact_nt can use the existing public approx() method inherited from the Lazy base class.

Files changed:

  • Number_types/include/CGAL/Lazy_exact_nt.h (-3 lines)

Fixes CGAL#6446.

�pprox_adv() accessed 	his->ptr() which was declared private,
causing a compile error.  The method is not documented, not tested,
and has no callers anywhere in the codebase.  Remove it entirely.

The intended functionality (obtaining an Interval_nt<false> / Interval_nt_advanced
from a Lazy_exact_nt) can be obtained via the existing public
�pprox() member inherited from the Lazy base class.
Copilot AI review requested due to automatic review settings March 1, 2026 16:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #6446 by removing the broken and unused approx_adv() method from Lazy_exact_nt. The method was never callable due to accessing the private ptr() member of the Lazy base class, was completely undocumented, and had zero callers across the entire codebase.

Changes:

  • Removes the uncompilable approx_adv() method from Lazy_exact_nt (the same functionality is already available via the public approx() method inherited from Lazy, which also returns Interval_nt<false>)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants