Skip to content

Conversation

@atta-ullah01
Copy link
Contributor

@atta-ullah01 atta-ullah01 commented Jan 9, 2026

Summary of Changes

This PR removes using namespace std; from files. It replaces implicit standard library calls with explicit std:: prefixes (e.g., std::copy, std::endl, std::ostream_iterator, std::flush).

Release Management

  • Affected package(s): Bounding_volumes, Polytope_distance_d
  • Issue(s) solved (if any):
  • Feature/Small Feature (if any):
  • Link to compiled documentation:
  • License and copyright ownership:

Replace 'using namespace std' with explicit std:: prefixes in
validation functions and I/O operators to avoid namespace pollution.

Affected files:
- Bounding_volumes/include/CGAL/Min_circle_2.h
- Bounding_volumes/include/CGAL/Min_circle_2/Min_circle_2_impl.h
- Bounding_volumes/include/CGAL/Min_ellipse_2.h
- Bounding_volumes/include/CGAL/Min_ellipse_2/Min_ellipse_2_impl.h
- Bounding_volumes/include/CGAL/Min_annulus_d.h
- Polytope_distance_d/include/CGAL/Polytope_distance_d.h
@afabri
Copy link
Member

afabri commented Jan 9, 2026

This does not pollute anything, because the using statement is inside functions.

@atta-ullah01
Copy link
Contributor Author

This does not pollute anything, because the using statement is inside functions.

You are correct; since it is local, it doesn't pollute the global namespace. My goal was simply to align these files with modern C++ style and ensure consistency. If you view this as unnecessary code churn, let me know and I will close the PR

@afabri afabri requested review from lrineau and sloriot January 12, 2026 07:05
Copy link
Member

@lrineau lrineau left a comment

Choose a reason for hiding this comment

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

I agree that those changes are not strictly necessary. But would align those headers with the other usages in CGAL.

@sloriot
Copy link
Member

sloriot commented Jan 14, 2026

Successfully tested in CGAL-6.2-Ic-82

@sloriot sloriot merged commit aeef981 into CGAL:main Jan 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants