No more date to avoid triggering svn changes

release/4.3a0
Frank Dellaert 2012-02-06 17:18:25 +00:00
parent 819d3273f4
commit c2e14b9f06
1 changed files with 3 additions and 7 deletions

View File

@ -8,12 +8,10 @@
#include "FileWriter.h" #include "FileWriter.h"
#include "utilities.h" #include "utilities.h"
#include <boost/date_time/gregorian/gregorian.hpp>
#include <fstream> #include <fstream>
#include <iostream>
using namespace std; using namespace std;
using namespace boost::gregorian;
using namespace wrap; using namespace wrap;
/* ************************************************************************* */ /* ************************************************************************* */
@ -41,10 +39,8 @@ void FileWriter::emit(bool add_header, bool force_overwrite) const {
if (!ofs) throw CantOpenFile(filename_); if (!ofs) throw CantOpenFile(filename_);
// header // header
if (add_header) { if (add_header)
date today = day_clock::local_day(); ofs << comment_str_ << " automatically generated by wrap" << endl;
ofs << comment_str_ << " automatically generated by wrap on " << today << endl;
}
// dump in stringstream // dump in stringstream
ofs << new_contents; ofs << new_contents;