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
news:bj57fn$clh$1_at_sea.gmane.org...
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net