"Kevin S. Van Horn" <[EMAIL PROTECTED]> 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
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to