Boost logo

Boost :

From: Ulrich Eckhardt (uli_at_[hidden])
Date: 2005-02-14 14:57:10

On Monday 14 February 2005 15:03, Peter Dimov wrote:
> Sérgio Vale e Pace wrote:
> > it should work indenticaly either way, but IMO <cassert> should be
> > used for C++ code.
> It's a leftover from the days of compilers that don't have <cxx> versions
> of <xx.h>. Since <assert.h> is identical to <cassert>, there was no point
> in breaking those just for the style points.

I'd say that one can get the style points for documenting this decision.

/* we use <assert.h> instead of the more proper <cassert> because support for
the old header is far more widespread among compilers and because it makes
absolutely no difference since it only contains macros. */
#include <assert.h>


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