Skip to content
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

Avoid clash with Arduino defines #3338

Merged
merged 3 commits into from
Apr 3, 2022
Merged

Conversation

DarkZeros
Copy link
Contributor

  • Arduino defines B0/B1 in "binary.h"
    #define B0 0
    #define B1 1
    This clashes with names of the template
    variables in conjuction

  • Renaming them to "B" rather than "B1"
    Now it can be used as-is in Arduino projects

* Arduino defines B0/B1 in "binary.h"
     #define B0 0
     #define B1 1
  This clashes with names of the template
  variables in conjuction

* Renaming them to "B" rather than "B1"
  Now it can be used as-is in Arduino projects
@DarkZeros DarkZeros requested a review from nlohmann as a code owner February 17, 2022 19:06
@gregmarr
Copy link
Contributor

Wow, how incredibly short-sighted of that project, polluting the global namespace like that.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f5f122c on DarkZeros:develop into d8a6329 on nlohmann:develop.

Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nlohmann nlohmann merged commit 6121dbb into nlohmann:develop Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants