Boost logo

Boost :

Subject: [boost] Requirements: min and max macros
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2017-02-05 17:15:30


"Make sure your code compiles in the presence of the min() and max()
macros. Some platform headers define min() and max()macros which cause
some common C++ constructs to fail to compile. Some simple tricks can
protect your code from inappropriate macro substitution:..."

There is one case not addressed. What to do with this:

    std::min<std::size_t>(a, b);


Boost list run by bdawes at, gregod at, cpdaniel at, john at