|
Boost : |
From: Darin Adler (darin_at_[hidden])
Date: 2001-12-19 21:16:05
On 12/19/01 6:06 PM, "Darin Adler" <darin_at_[hidden]> wrote:
> But as far as I'm concerned, there's no need for a BOOST_MPL_NIL workaround,
> though, because adding:
>
> #include <MacTypes.h>
> #undef nil
> #define nil nil
>
> to the start of any source file where this is a problem should do just fine
> as a workaround.
A quick refinement of what I said above. Simply adding
#define nil nil
would do, if this is guaranteed to be before any include of <MacTypes.h>.
#undef nil
#define nil nil
would be sufficient if this might be after a direct or indirect <MacTypes.h>
include. No need to explicitly include <MacTypes.h> in either case, as I did
in my example above.
-- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk