Boost logo

Boost :

Subject: Re: [boost] What to do with platform defining 'null' as preprocessor symbol?
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2012-08-23 13:12:17

[Robert Stewart]
> Boost doesn't avoid "min" and "max" but encloses them in parentheses to prevent preprocessor expansion.
> "null" could be treated similarly, though some may prefer to choose a different identifier.

Parentheses defend against function-like macros, but not against object-like macros.


Boost list run by bdawes at, gregod at, cpdaniel at, john at