Browse Source

Fixed boost::archive exception

merge-requests/413/merge
eidheim 2 years ago
parent
commit
fccfd34771
  1. 2
      src/usages_clang.cpp

2
src/usages_clang.cpp

@ -759,9 +759,9 @@ Usages::Clang::Cache Usages::Clang::read_cache(const boost::filesystem::path &pr
if(boost::filesystem::exists(cache_path, ec)) { if(boost::filesystem::exists(cache_path, ec)) {
std::ifstream stream(cache_path.string()); std::ifstream stream(cache_path.string());
if(stream) { if(stream) {
try {
Cache cache; Cache cache;
boost::archive::text_iarchive text_iarchive(stream); boost::archive::text_iarchive text_iarchive(stream);
try {
text_iarchive >> cache; text_iarchive >> cache;
return cache; return cache;
} }

Loading…
Cancel
Save