【C++】問題解決:terminate called after throwing an instance of 'boost::archive::archive_exception' what(): output stream error

問題描述

當我們編譯 C++ 時,遇到以下問題

terminate called after throwing an instance of 'boost::archive::archive_exception'
  what():  output stream error

解法

我碰到此問題時,主要有以下三種可能的情況:

(反正後來解決了,就不特別復現是哪個問題,只提供找問題的方向)

  • 磁碟滿了,無法寫入
  • 兩支程式同時針對同一個檔案(資料夾)去做處理
  • 資料夾不乾淨 (程式吃到一些不應該處理的檔案)
Licensed under CC BY-NC-SA 4.0