public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8852: can't create a vector of multiple ifstreams.
@ 2002-12-06 14:58 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-06 14:58 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, yooheesh

Synopsis: can't create a vector of multiple ifstreams.

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Dec  6 14:58:38 2002
State-Changed-Why:
    Right, you can't. The elements of a vector need to be copyable. fstreams are not.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8852


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/8852: can't create a vector of multiple ifstreams.
@ 2002-12-06 14:46 yooheesh
  0 siblings, 0 replies; 2+ messages in thread
From: yooheesh @ 2002-12-06 14:46 UTC (permalink / raw)
  To: gcc-gnats


>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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-06 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 14:58 c++/8852: can't create a vector of multiple ifstreams bangerth
  -- strict thread matches above, loose matches on Subject: below --
2002-12-06 14:46 yooheesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).