c++/8852: can't create a vector of multiple ifstreams.
yooheesh@yahoo.com
yooheesh@yahoo.com
Fri Dec 6 14:46:00 GMT 2002
>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
More information about the Gcc-bugs
mailing list