OSDN Git Service

Change idx sub dir's time stamp when saving idx.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Tue, 30 Jun 2009 11:14:42 +0000 (20:14 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Tue, 30 Jun 2009 11:14:42 +0000 (20:14 +0900)
src/thread_idx.cxx

index efc9c9e..2bce335 100644 (file)
@@ -43,6 +43,8 @@ void ThreadIdx::to_xml(const boost::filesystem::path& xml) {
   try {
     boost::archive::xml_oarchive oa(ofs);
     oa << boost::serialization::make_nvp("ThreadIdx", *this);
+    boost::filesystem::last_write_time(xml.parent_path(),
+        boost::filesystem::last_write_time(xml));
   } catch (const boost::archive::archive_exception& e) {
     std::cerr << e.what() << " " << xml.file_string() << std::endl;
   }