]> www.ginac.de Git - ginac.git/blobdiff - tools/viewgar.cpp
Parser: don't bother to generate 3 (C++) functions with autogen.
[ginac.git] / tools / viewgar.cpp
index 93ca604903a7d200eba156708bffe559200051f2..364afda25b2692b4c814936e547cb96a85c4cdcf 100644 (file)
@@ -3,7 +3,7 @@
  *  GiNaC archive file viewer. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include "ginac.h"
+using namespace GiNaC;
+
 #include <cstdlib>
-#include <iostream>
 #include <fstream>
+#include <iostream>
 #include <stdexcept>
-
-#include "ginac.h"
-
 using namespace std;
-using namespace GiNaC;
 
 int main(int argc, char **argv)
 {
@@ -46,7 +45,7 @@ int main(int argc, char **argv)
                                dump_mode = true;
                                --argc; ++argv;
                        }
-                       std::ifstream f(*argv);
+                       std::ifstream f(*argv, std::ios_base::binary);
                        archive ar;
                        f >> ar;
                        if (dump_mode) {