Boost logo

Boost Users :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2003-09-08 17:52:33

"Charles Schwartz" <yg-boost-users_at_[hidden]> wrote in message
> 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
> 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
> 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+.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at