dpilger26/NumCpp

max and min are already defined.

Angeliccare opened this issue · 3 comments

minwindef.h from SDK 8.1 contains:
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

those words are used in numcpp, please.

Yep that's unfortunate, but nothing can be done about it.

@Angeliccare you can try either before including windows.h

#define NOMINMAX

or adding to the compile command -DNOMINMAX

Closing due to inactivity.