This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: namespace issues with old C headers


On Tue, Apr 15, 2003 at 09:52:11AM -0700, Joe Buck wrote:

> I'll look for any other cases of <assert.h> or <cassert>.  There are
> other ones that are likely to be more difficult to fix (e.g. one STL
> header including another),  

I think the only reason most libstdc++ headers end up including
<cassert> is for the __debug_alloc allocator in bits/stl_alloc.h

Because that allocator uses assert() to check for memory errors,
<alloc> includes <cassert>, and most things include <alloc>.

If the __debug_alloc allocator was moved out to a non-standard header
that users had to include explicitly then I don't _think_ assert() would
be brought in by any libstdc++ header (C headers are a different matter,
and I haven't looked into it much...)

jon

-- 
"There is nothing noble in being superior to your fellow men -
 true nobility is being superior to your former self."
	- www.radiohead.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]