std::_MAX Replacement



I'm migrating from VS6.0 to VS 2003 .Net.

One of the breaking changes is that _MAX has been redefined so that
std::_MAX will no longer compile. I tried changing each usage to std::max,
but that won't compile either. So I went
using std::max
....
float a = max(b, c);

which is compiling.

How have other people dealt with this issue?

Thanks in advance!
.



Relevant Pages

  • Re: Compile java sources inside J2EE component
    ... > to compile them at runtime, is there a possibility to do so? ... classloader (the standard URLClassLoader, or whatever it's called, should work ... so there's no interference with any defunct classes that might still be ... One thing that isn't helped by classloaders is migrating the state of the ...
    (comp.lang.java.programmer)
  • try/catch unreachable code C2407 migrating from vs 6.0 to vs 7.1 .NET
    ... I am migrating C++ unmanaged to managed VC 7.1. ... The compile tells ... prefix "public _gc class CAccountExposure: ... statements that automate excel ...
    (microsoft.public.vc.language)
  • try/catch unreachable code C2407 migrating from vs 6.0 to vs 7.1 .NET
    ... I am migrating C++ unmanaged to managed VC 7.1. ... The compile tells ... prefix "public _gc class CAccountExposure: ... statements that automate excel ...
    (microsoft.public.dotnet.languages.vc)
  • f2c.. what happened?
    ... I'm migrating to red hat and I noticed that there is no f2c in version 9 ... I need it to compile some programs.. ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: VS 2003 Upgrade
    ... >> members of the development team are using 2002), ... Code wise - probably none (there were a few breaking changes going from ... classes/methods you use if you decide to use 2003 to compile apps that ...
    (microsoft.public.dotnet.languages.vb)