8 Sep
2003
8 Sep
'03
10:52 p.m.
"Charles Schwartz"
win32.hpp has using std::min and using std::max directives. (win32.hpp in fact overrides these functions).
These directives hinder use of the max function elsewhere in a client program, for example, by #included c libraries, which are expecting to use the global (non overridden) max function.
Indeed, Sutter's More Exceptional C++ #40 (p. 236) asserts that using directives/declerations should never appear in any headers (certainly not at file scope!).
Will this be removed in future releases?
The code gives some explanation why 'using' is here. Maybe it should be rechecked if it applies also on MSVC 7+. /Pavel