]> www.ginac.de Git - ginac.git/blobdiff - check/exam_archive.cpp
Added CLEANFILES.
[ginac.git] / check / exam_archive.cpp
index 303192d0fbd90c949fa6ec14fb85e5a91bed2c52..a2e19c44d3dcc1f3c10cf82a100f35c37e53b645 100644 (file)
@@ -3,7 +3,7 @@
  *  Here we test GiNaC's archiving system. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2007 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
@@ -54,12 +54,12 @@ unsigned exam_archive()
        archive ar;
        ar.archive_ex(e, "expr 1");
        {
-               std::ofstream fout("exam.gar");
+               std::ofstream fout("exam.gar", std::ios_base::binary);
                fout << ar;
        }
        ar.clear();
        {
-               std::ifstream fin("exam.gar");
+               std::ifstream fin("exam.gar", std::ios_base::binary);
                fin >> ar;
        }
        f = ar.unarchive_ex(lst(x, y, mu, dim), "expr 1");