For Programmers: Free Programming Magazines  


Home > Archive > VC STL > February 2006 > Re: numeric_limits min max methods conflict with windef.h min max









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: numeric_limits min max methods conflict with windef.h min max
Pete Becker

2006-02-10, 7:03 pm

John P. Eurich wrote:

> The min and max macros defined in <windef.h> conflicts with the min and max
>
> The solution is to wrap the full method name in parentheses, e.g.
> (std::numeric_limits<char>::min)()
>


Or to get rid of the macros by defining a macro named NOMINMAX before
you include <windows.h>.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com