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

min/max macros makes most c++ containers useless #117

Open
1 of 2 tasks
duncmac16 opened this issue Nov 30, 2020 · 0 comments
Open
1 of 2 tasks

min/max macros makes most c++ containers useless #117

duncmac16 opened this issue Nov 30, 2020 · 0 comments

Comments

@duncmac16
Copy link

Make sure you read and understand this document.
Use one of the two templates below and delete the rest.

  • BUG REPORT
  • FEATURE REQUEST

BUG REPORT
I am trying to use the Arduino framework that relies on the standalone sdk and came across the min/max macros. These two macros make most C++ containers useless as they no longer compile correctly. The container classes use the std::numeric_limits::max() function, hence the compiler target no longer makes sense.

Expected behaviour

There should be no lower-case min or max macro's. Only inline functions.

Actual behavior

Test code

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

#include <array>

int main() {
   std::array<int, 1> a;
}

Hardware

Sipeed Maixduino

System

MacOS

@duncmac16 duncmac16 changed the title min/max macros makes most c++ containers min/max macros makes most c++ containers usless Nov 30, 2020
@duncmac16 duncmac16 changed the title min/max macros makes most c++ containers usless min/max macros makes most c++ containers useless Nov 30, 2020
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

No branches or pull requests

1 participant