r279: msvc compatibility changes
[ctsim.git] / tools / phm2if.cpp
index afc579c3eacdccd75bdc1f1ecc83b1fe287ceb69..e00e84e899c5b020296ed933c9109d340008863f 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: phm2if.cpp,v 1.15 2000/12/16 07:28:25 kevin Exp $
+**  $Id: phm2if.cpp,v 1.16 2000/12/17 23:30:48 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
@@ -50,7 +50,7 @@ static struct option my_options[] =
   {0, 0, 0, 0}
 };
 
-static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.15 2000/12/16 07:28:25 kevin Exp $";
+static const char* g_szIdStr = "$Id: phm2if.cpp,v 1.16 2000/12/17 23:30:48 kevin Exp $";
 
 void 
 phm2if_usage (const char *program)
@@ -195,7 +195,7 @@ phm2if_main (int argc, char* argv[])
 #ifdef VERSION
          std::cout << "Version " << VERSION << std::endl << g_szIdStr << std::endl;
 #else
-          cerr << "Unknown version number\n";
+          std::cerr << "Unknown version number\n";
 #endif
       case O_HELP:
       case '?':
@@ -208,7 +208,7 @@ phm2if_main (int argc, char* argv[])
     }
     
     if (optPhmName == "" && optFilterName == "" && optPhmFilename == "") {
-      cerr << "No phantom defined\n" << std::endl;
+      std::cerr << "No phantom defined\n" << std::endl;
       phm2if_usage(argv[0]);
       return (1);
     }
@@ -259,7 +259,7 @@ phm2if_main (int argc, char* argv[])
       phm.createFromFile(optPhmFilename.c_str());
 #ifdef HAVE_MPI
       if (mpiWorld.getRank() == 0) 
-       cerr << "Can't use phantom from file in MPI mode\n";
+       std::cerr << "Can't use phantom from file in MPI mode\n";
       return (1);
 #endif
     }
@@ -406,9 +406,9 @@ main (int argc, char* argv[])
   try {
     retval = phm2if_main(argc, argv);
   } catch (exception e) {
-    cerr << "Exception: " << e.what() << std::endl;
+    std::cerr << "Exception: " << e.what() << std::endl;
   } catch (...) {
-    cerr << "Unknown exception\n";
+    std::cerr << "Unknown exception\n";
   }
 
   return (retval);