Skip to content

Add a C++ 'tesseract' namespace.#220

Open
supeterposition wants to merge 1 commit intoquantumlib:mainfrom
supeterposition:tesseract-namespace
Open

Add a C++ 'tesseract' namespace.#220
supeterposition wants to merge 1 commit intoquantumlib:mainfrom
supeterposition:tesseract-namespace

Conversation

@supeterposition
Copy link
Copy Markdown

This prevents namespace collisions when including C++ headers and libraries.

@supeterposition supeterposition requested a review from a team as a code owner March 23, 2026 18:03
@supeterposition supeterposition requested review from noajshu and removed request for a team March 23, 2026 18:03
@supeterposition
Copy link
Copy Markdown
Author

This might be related to #177? Both tesseract and highspy currently define a class Node in the global namespace, for example.

Copy link
Copy Markdown
Contributor

@noajshu noajshu left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

Copy link
Copy Markdown
Collaborator

@LalehB LalehB left a comment

Choose a reason for hiding this comment

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

LGTM!
super nit suggestion: I would recommend a more descriptive name tesseract_decoder for the namespace, because google has a tesseract OCR engine that has a namespace tesseract :D I doubt that anyone would use both of them together tho!

@noajshu
Copy link
Copy Markdown
Contributor

noajshu commented Mar 23, 2026

Oh yeah +1 to Laleh's suggestion!

@supeterposition
Copy link
Copy Markdown
Author

LGTM! super nit suggestion: I would recommend a more descriptive name tesseract_decoder for the namespace, because google has a tesseract OCR engine that has a namespace tesseract :D I doubt that anyone would use both of them together tho!

Good idea, done!

Copy link
Copy Markdown
Contributor

@NoureldinYosri NoureldinYosri left a comment

Choose a reason for hiding this comment

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

overall lgtm%nits

This prevents namespace collisions when including C++ headers and libraries.
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.

4 participants