
14 Feb
2005
14 Feb
'05
7:57 p.m.
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> Uli