This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8852: can't create a vector of multiple ifstreams.
- From: yooheesh at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 6 Dec 2002 22:38:37 -0000
- Subject: c++/8852: can't create a vector of multiple ifstreams.
- Reply-to: yooheesh at yahoo dot com
>Number: 8852
>Category: c++
>Synopsis: can't create a vector of multiple ifstreams.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 06 14:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Yoo-hee Shin
>Release: 2.95.2
>Organization:
>Environment:
sparc-sun-solaris2.6
>Description:
I cannot create a vector of ifstream.
>How-To-Repeat:
#include <vector>
#include <fstream>
main() {
std::vector<ifstream> i(3);
}
>Fix:
It works:
ifstream i[3];
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cc"
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGZzdHJlYW0+CgptYWluKCkgewogICAgc3RkOjp2
ZWN0b3I8aWZzdHJlYW0+IGkoMyk7Cn0K