|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-02-18 16:30:04
At 02:57 PM 2/14/2005, Ulrich Eckhardt wrote:
>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>
Unless someone objects (Peter?) I'll commit a slightly shorter version of
the above:
#include <assert.h> // .h to support old libs w/o <cassert> - effect is the
same
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk