#249 Don't use min() macro

v1.0 (example)
closed-duplicate
None
5
2014-02-18
2011-11-22
Anonymous
No

There are at least two places in atlapp.h where the preprocessor min() macro is used. The availability of this macro can create issues when using standard library items such as std::numeric_limits. It's recommended to define NOMINMAX to remove the min/max macros from the global namespace.

Temporarily I've made a change to my local copy of atlapp.h as below:

#ifdef NOMINMAX
#include <algorithm>
using std::min;
using std::max;
#endif

Discussion

    • assigned_to: nobody --> nenadstefanovic
     
    • status: open --> closed-duplicate
    • Group: --> v1.0 (example)
     
  • The same issue as patch #39

    Used max() and min() instead