|
Boost : |
Subject: [boost] Requirements: min and max macros
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2017-02-05 17:15:30
From
http://www.boost.org/development/requirements.html#Naming
"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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk