This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Does C++ std::queue really conflict with C header 'struct queue'?


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


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