Skip to content

Fix: Add missing cstdint include for uint32_t definition #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kuzeyardic
Copy link

Summary

Fixed compilation error where uint32_t identifier was undefined by adding the required <cstdint> header include.

Problem

The code was using uint32_t in function parameters (lines 23 and 32) but the necessary header wasn't included, causing compilation failures with error "identifier 'uint32_t' is undefined".

Solution

Added #include <cstdint> to include the standard fixed-width integer type definitions.

Files Changed

  • include/ann_exception.h: Added cstdint include

Testing

  • Code compiles successfully
  • No breaking changes to existing API
  • Header-only change, no runtime impact

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change
  • Documentation update

Additional Notes

This ensures proper C++11 standard compliance and portability across different compilers and platforms.

- Resolves compilation error where uint32_t was undefined
- Adds required <cstdint> header for fixed-width integer types
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.

1 participant