Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-15 12:21:11

"Kevin S. Van Horn" <Kevin.VanHorn_at_[hidden]> writes:

> Peter Dimov write:
>> > 1. The proper C++ header file is <cassert>, not <assert.h>.
>> True. The "improper" header has the advantage that it's universally
>> available, though, and there is no other difference between the two,
> I don't want to make a mountain out of a molehill, but I believe there is
> a difference between the two: <cassert> is part of the C++ Standard, and
> <assert.h> is not. Strictly speaking, use of <assert.h> is not
> standard-conforming

Nope. One of the main design goals of C++ was that many normal 'C'
language programs should compile without modification. Removing the
'C' language <xxx.h> headers would totally undermine that. Every 'C'
hello world starts with:

#include <stdio.h>

So C++ includes all of the 'C' headers.

                       David Abrahams
   dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

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