r272: Added std:: naming to ios variables
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 17 Dec 2000 22:30:09 +0000 (22:30 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 17 Dec 2000 22:30:09 +0000 (22:30 +0000)
libctsim/projections.cpp

index edbed03dc8ecbea37166d9ebde3589a16f036053..d2ab2b69e189409ce08fb007b8116c0e6da7c3c9 100644 (file)
@@ -8,7 +8,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: projections.cpp,v 1.32 2000/12/16 06:12:47 kevin Exp $
+**  $Id: projections.cpp,v 1.33 2000/12/17 22:30:09 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -307,10 +307,14 @@ Projections::read (const std::string& filename)
 bool
 Projections::read (const char* filename)
 {
-  frnetorderstream fileRead (filename, ios::in | ios::binary);
-  m_filename = filename;
-
-  if (! fileRead)
+  m_filename = filename;\r
+#ifdef MSVC\r
+  frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary);\r
+#else\r
+  frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary | std::ios::nocreate);\r
+#endif\r
+
+  if (fileRead.fail())
     return false;
 
   if (! headerRead (fileRead))