Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/3party
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-07-02 23:41:53 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:57 +0300
commitcfe83e8dc318f3730995bcb0e0ec12fb98c8fe00 (patch)
treeee8cd2820535e702bb5d57c743388d18ad28c7e9 /3party
parent21da223b3b0fe819ca7d26aad4f7d4db01ae7418 (diff)
[linux] Fixed compilation on gcc 4.8.2 & libstdc++
Diffstat (limited to '3party')
-rw-r--r--3party/Alohalytics/src/posix/file_manager_posix_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/3party/Alohalytics/src/posix/file_manager_posix_impl.cc b/3party/Alohalytics/src/posix/file_manager_posix_impl.cc
index 616215b789..16cfdc4d25 100644
--- a/3party/Alohalytics/src/posix/file_manager_posix_impl.cc
+++ b/3party/Alohalytics/src/posix/file_manager_posix_impl.cc
@@ -69,10 +69,11 @@ uint64_t FileManager::GetFileSize(const std::string & full_path_to_file) {
if (S_ISREG(st.st_mode)) {
return st.st_size;
}
- throw std::ios_base::failure(full_path_to_file + " is a directory.",
- std::error_code(EISDIR, std::generic_category()));
+ // TODO(AlexZ): gcc 4.8.2 & libstdc++ do not support std::error_code.
+ throw std::ios_base::failure(full_path_to_file + " is a directory."/*,
+ std::error_code(EISDIR, std::generic_category())*/);
}
- throw std::ios_base::failure(std::string("Can't stat file ") + full_path_to_file,
- std::error_code(errno, std::generic_category()));
+ throw std::ios_base::failure(std::string("Can't stat file ") + full_path_to_file/*,
+ std::error_code(errno, std::generic_category())*/);
}
} // namespace alohalytics