* 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
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");