Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-07-28 20:06:47


Jason Hise wrote:
> Martin Wille wrote:
>> Jason Hise wrote:
>>>undef NULL
>>>#define NULL (::boost::null)
>>>
>
> What existing code will it break?

struct foo {};
typedef void (foo::*memfunptr)();
memfunptr p = NULL;

Redefining NULL is a career-limiting move. Don't do it.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

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