c++/7498: copy constructor of ostream (and ios) is private and it should not be!
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Aug 5 09:46:00 GMT 2002
The following reply was made to PR c++/7498; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: mdp@fnal.gov
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7498: copy constructor of ostream (and ios) is private and it should not be!
Date: 05 Aug 2002 18:34:23 +0200
mdp@fnal.gov writes:
| >Number: 7498
| >Category: c++
| >Synopsis: copy constructor of ostream (and ios) is private and it should not be!
[...]
| >Release: gcc 2.96.3 20000503/Linux
There is no GCC release named 2.96.3, I guess you meant 2.95.3.
That release is known to come with pre-standard library.
The library that comes with GCC-3.x is much more compliant and meets
the standard requirement in that area.
[...]
| ostream a=file;
This is ill-formed, you cannot copy a std::ostream.
| works on Visual C++ but on g++
If it worked with Visual C++, then it is a bug in that compiler.
-- Gaby
More information about the Gcc-prs
mailing list