Date: Tue, 17 Dec 1996 20:36:01 -0500 (EST) From: John Fieber <jfieber@indiana.edu> To: Frank Nobis <fn@radio-do.de> Cc: hackers@freebsd.org Subject: Re: Weired c++ behaviour regarding iostreams Message-ID: <Pine.BSI.3.95.961217202935.280F-100000@fallout.campusview.indiana.edu> In-Reply-To: <ygerakog401.fsf@trinity.radio-do.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 18 Dec 1996, Frank Nobis wrote: > ifstream file; ... > file.ifstream("stream1.cc"); It works if you combine these to: ifstream file("stream1.cc"); Off the top of my head, the original looks a bit suspicious, calling a constructor after the object is already constructed, but I'm a C++ novice... The original bit of code wouldn't even compile on SunPRO CC: "stream1.cc", line 19: Error: ifstream is not a member of ifstream. -john
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.961217202935.280F-100000>