
On 7/24/06 4:41 PM, "Eric Niebler" <eric@boost-consulting.com> wrote: [SNIP recap]
BOOST_MIN() and BOOST_MAX() now live in minmax_macro.zip at:
http://boost-consulting.com/vault/index.php?directory=Algorithms
and also in boost-sandbox CVS at boost/algorithm/minmax_macro.hpp. It's been tested with gcc 3.x and msvc 7.1, and I took a stab at a version for Comeau, but which is currently untested.
This code pokes into C++'s dark, dusty corners, and no two compilers seem to agree, so any feedback/workarounds for other compilers is much appreciated.
Works on XCode 2.3 (Mac OS X 10.4.7 on PowerPC, using special GCC 4.0.1).
Thanks go to Howard Hinnant for feedback and test cases.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com