This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does C++ std::queue really conflict with C header 'struct queue'?
- From: Phil Edwards <phil at jaj dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 25 Jul 2003 22:47:11 -0400
- Subject: Re: Does C++ std::queue really conflict with C header 'struct queue'?
- References: <20030726021716.GA621@twcny.rr.com>
On Fri, Jul 25, 2003 at 10:17:16PM -0400, Nathanael Nerode wrote:
> The following hunk of code from fixinc.svr4 purports to fix a problem, which I
> think may not be a problem.
>
> The claim is that 'struct queue' in sys/stream.h conflicts with the
> 'queue' class in C++ headers. This seems wrong to me because the C++
> queue class is in namespace std, and I don't see why the sys/stream.h
> version would be.
My guess is that it dates from the days when gcc didn't have proper
namespace support. Tomorrow I'll try removing that fix and see whether
anything breaks on solaris.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams