From: lasgoutt@fantomas.inria.fr (Jean-Marc Lasgouttes)
Subject: [cxx 6.2] bug in std::filebuf constructor?
Date: 13 Sep 2000 12:41:48 GMT [thread overview]
Message-ID: <8pnsmc$lqh$1@ites.inria.fr> (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
reply other threads:[~2000-09-13 12:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox