From owner-freebsd-hackers Tue Dec 17 17:36:12 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA07126 for hackers-outgoing; Tue, 17 Dec 1996 17:36:12 -0800 (PST) Received: from fallout.campusview.indiana.edu (fallout.campusview.indiana.edu [149.159.1.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA07113 for ; Tue, 17 Dec 1996 17:36:08 -0800 (PST) Received: from localhost (jfieber@localhost) by fallout.campusview.indiana.edu (8.8.4/8.8.4) with SMTP id UAA04627; Tue, 17 Dec 1996 20:36:01 -0500 (EST) Date: Tue, 17 Dec 1996 20:36:01 -0500 (EST) From: John Fieber To: Frank Nobis cc: hackers@freebsd.org Subject: Re: Weired c++ behaviour regarding iostreams In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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