Skip to content

Conversation

@GiovanniDicanio
Copy link

Fix issues #51 #56 #57 #58

Fix compatibility with Windows Platform SDK headers with proper parentheses around (std::numeric_limits<T>::min)() and (std::numeric_limits<T>::max)(). Moreover, encloses the header code in a namespace (safeint) to avoid polluting the global namespace. And prefixes preprocessor macros defined in the header with a proper SAFEINT_ prefix, again to avoid naming collisions.

…in/max, add namespace, and prefix preprocessor macros

Fix compatibility with Windows Platform SDK headers with proper parentheses around `(std::numeric_limits<T>::min)()` and `(std::numeric_limits<T>::max)()`. Moreover, encloses the header code in a namespace (`safeint`) to avoid polluting the global namespace. And prefixes preprocessor macros defined in the header with a proper `SAFEINT_` prefix, again to avoid naming collisions.
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