Boost logo

Boost :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2004-11-22 14:56:26


"Robert Ramey" <ramey_at_[hidden]> wrote in message
news:cntdbc$bah$1_at_sea.gmane.org...
> I use MFC on a regular basis. What works best for me is to not mix boost
> and MFC headers in the same module. This requires a little bit of
> organization but I believe is simpler in the long run.

Except when one is serializing views themselves.

> Robert Ramey
>
> "Jeff Flinn" <TriumphSprint2000_at_[hidden]> wrote in message
> news:cntc3l$7ia$1_at_sea.gmane.org...
> I've just tried to move to 1.32 and get the following warning:
>
> C:\boost\boost_1_32_0\boost\archive\basic_binary_oprimitive.hpp(101) :
> warning C4003: not enough actual parameters for macro 'max'
>
> which points to:
>
> assert(
>
> static_cast<std::size_t>(std::numeric_limits<std::streamsize>::max()) >=
> count
> );

I seemed to remember related min/max discussions in the past that suggested
surrounding the qualified function name in parens as shown below

assert
(
 static_cast<std::size_t>((std::numeric_limits<std::streamsize>::max)()) >=
count
);

This appears to work in both binary_oprimitive line 101 and
binary_iprimitive line 105

Thanks, Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk