Skip to content

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

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

Add a C++ 'tesseract' namespace.#220
supeterposition wants to merge 1 commit into
quantumlib: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.

@noajshu noajshu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM!

Comment thread src/stim_utils.pybind.h

@LalehB LalehB left a comment

Copy link
Copy Markdown
Collaborator

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

noajshu commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

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!

@NoureldinYosri NoureldinYosri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

overall lgtm%nits

Comment thread src/common.cc
Comment thread src/common.cc Outdated
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