
1 Mar
2004
1 Mar
'04
1:32 p.m.
"Eric Niebler" <eric@boost-consulting.com> writes:
So why can't we add: #if defined(min) || defined(max) #error Define NOMINMAX and use the alternates in <algorithm> #endif
Because this will break people's code in a way they can't easily fix. Nor should they have to.
Actually, not. It would be ineffectual, because NOMINMAX only matters before min and max are #defined. -- Dave Abrahams Boost Consulting www.boost-consulting.com