Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* [cxx 6.2] bug in std::filebuf constructor?
@ 2000-09-13 12:41 Jean-Marc Lasgouttes
  0 siblings, 0 replies; only message in thread
From: Jean-Marc Lasgouttes @ 2000-09-13 12:41 UTC (permalink / raw)


Hello,

I have run into a behaviour of compaq cxx 6.2-024 which I believe to be a bug:
The following example, when compiled in strict_ansi mode, outputs is_open=1, 
while the standard stipulates that is_open() should be false.

#include <fstream>
#include <iostream>

int main() {
	std::filebuf buf;
	std::cerr << "is_open=" << buf.is_open() << std::endl;
	return 0;
}


Is that a real bug, or did I overlook something?

JMarc

-- 
-------------------------------------------------
Jean-Marc Lasgouttes, Projet MEVAL, INRIA, France
e-mail : jean-marc.lasgouttes@inria.fr


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-13 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-13 12:41 [cxx 6.2] bug in std::filebuf constructor? Jean-Marc Lasgouttes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox