Skip to content

Fix missing ann_exception.h in index_build_params.h#685

Merged
harsha-simhadri merged 1 commit intomicrosoft:cpp_mainfrom
hpdic:fix-header
Mar 3, 2026
Merged

Fix missing ann_exception.h in index_build_params.h#685
harsha-simhadri merged 1 commit intomicrosoft:cpp_mainfrom
hpdic:fix-header

Conversation

@hpdic
Copy link
Copy Markdown

@hpdic hpdic commented Dec 15, 2025

  • Does this PR have a descriptive title that could go in our release notes?
  • Does this PR add any new dependencies?
  • Does this PR modify any existing APIs?
    • Is the change to the API backwards compatible?
  • Should this result in any changes to our documentation, either updating existing docs or adding new ones?

Reference Issues/PRs

What does this implement/fix? Briefly explain your changes.

In include/index_build_params.h, the reference to ANNException class relies on the header file include/ann_exception.h. The current build didn't fail maybe because other files include that ann_exception.h header but that was dangerous: it's not guaranteed that the ann_exception.h will always be included by other files in future builds. I suggest we explicitly include the ann_exception.h header whenever we need it.

Any other comments?

@harsha-simhadri harsha-simhadri merged commit b76643e into microsoft:cpp_main Mar 3, 2026
1 check passed
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