aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-03-03 13:53:18 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-03-03 13:53:18 +0300
commit75b363ad9be455d895aee7f72f45be2d950d3518 (patch)
treeceef86b4a2c864b1a962dab41a8cd8b3f3ab0bc3 /contrib/libs/cxxsupp
parent473e96c44443a8567db5ba7ee48110663fcb21c7 (diff)
downloadydb-75b363ad9be455d895aee7f72f45be2d950d3518.tar.gz
Support std::filesystem::path in Arcadia streams
ref:11bbdd83544b9579747dd12d51395840bda86faf
Diffstat (limited to 'contrib/libs/cxxsupp')
-rw-r--r--contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h
index a5f5749783..9c6fdf34f6 100644
--- a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h
+++ b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h
@@ -128,6 +128,16 @@ size_t error_value<size_t>() {
return size_t(-1);
}
#endif
+
+#if defined(_MSC_VER) && !defined(__clang__) && defined(_M_IX86)
+// FIXME thegeorg@ MSVC on i686 somehow depends on this function presence.
+// Further investigation is needed in order to understand the logic behind this.
+template <>
+unsigned int error_value<unsigned int>() {
+ return unsigned int(-1);
+}
+#endif
+
template <>
uintmax_t error_value<uintmax_t>() {
return uintmax_t(-1);