|
Boost : |
From: Darin Adler (darin_at_[hidden])
Date: 2002-02-05 11:26:28
On 2/5/02 8:17 AM, "Alisdair Meredith" <alisdair.meredith_at_[hidden]>
wrote:
> Shouldn't that be
>
> #include <cassert>
>
> or have I been picking up odd habits again?
For most C headers, it's necessary to use the C++ version, <cxxx>, because
then you don't get identifiers intruding on the global namespace; they stay
in namespace std.
But <assert.h> defines only a macro, so there's no difference between
<cassert> and <assert.h> except that some platforms lack an <assert.h>.
That's why Peter (and then I) used <assert.h>.
-- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk