|
Boost Users : |
From: Steven Watanabe (steven_at_[hidden])
Date: 2008-01-07 12:25:45
AMDG
Hicham Mouline <hicham <at> mouline.org> writes:
> #include <iostream>
> #include <algorithm>
> int main()
> {
> const double d = std::max(5.0, 6.0);
> return 0;
> }
> This works fine.
> The strange thing is that when adding
> #include <boost/date_time/posix_time/posix_time.hpp>
> before or after <algorithm>
>
>
> Inclusing of that header seems somehow to damage "max".
max is defined as a macro by a microsoft header included from
windows.h
Use (std::max)(5.0, 6.0)
In Christ,
Steven Watanabe
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