-->
Page 2 of 2

Re: Arduino Min/Max

PostPosted: Wed Oct 21, 2015 9:16 am
by Asetyde
martinayotte wrote:I mean, normally on Arduino, such as Uno or Nano, we don't need to include any thing and min()/max() are already defined.
Here, on ESP, I had to specify the "std::" namespace (I didn't have to add a include), and it worked !
So, it is a small glitch, but if someone is porting a existing library, he will probably faced that ...

EDIT: I didn't have to add the include simply because it was already included indirectly.



Many thx , 1 hour to find :)

Re: Arduino Min/Max

PostPosted: Wed Feb 22, 2017 11:18 am
by elac
You can use _min() in place of min()