CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 3.55 seconds.

  1. Re: Cannot use global scope "max" function even ::max is used.

    Do not write any macro named min() and max() in a header file. Not only is there no need to, but it is very risky to do so. You're risking having modules not compile correctly.

    Instead, work...
  2. Re: Cannot use global scope "max" function even ::max is used.

    The problem is that the Windows header files defines min() and max() as macros. Attempting to mix them with the C++ standard std::min() and std::max() becomes problematic.

    There are two...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured