summaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/include/__functional
diff options
context:
space:
mode:
authormikhnenko <[email protected]>2023-11-14 21:05:51 +0300
committermikhnenko <[email protected]>2023-11-14 21:51:40 +0300
commitdc2b631c67243fa71124d24899ed58af28069700 (patch)
tree22c544e80e8b5bc19778b31be8fd7346beece964 /contrib/libs/cxxsupp/libcxx/include/__functional
parenta8c9782fb7c6454c0afef92c5e5cb16cce719515 (diff)
Drop some patches for MSVC compatibility
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/__functional')
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/__functional/bind.h18
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/__functional/function.h7
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/__functional/hash.h8
3 files changed, 0 insertions, 33 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__functional/bind.h b/contrib/libs/cxxsupp/libcxx/include/__functional/bind.h
index a5b0c0e1917..7ac44a2d633 100644
--- a/contrib/libs/cxxsupp/libcxx/include/__functional/bind.h
+++ b/contrib/libs/cxxsupp/libcxx/include/__functional/bind.h
@@ -191,11 +191,6 @@ struct __mu_return_impl<_Ti, false, false, false, _TupleUj>
typedef _Ti& type;
};
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( push )
-#pragma warning ( disable : 4296 )
-#endif
-
template <class _Ti, class _TupleUj>
struct __mu_return
: public __mu_return_impl<_Ti,
@@ -207,10 +202,6 @@ struct __mu_return
{
};
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( pop )
-#endif
-
template <class _Fp, class _BoundArgs, class _TupleUj>
struct __is_valid_bind_return
{
@@ -272,11 +263,6 @@ __apply_functor(_Fp& __f, _BoundArgs& __bound_args, __tuple_indices<_Indx...>,
return _VSTD::__invoke(__f, _VSTD::__mu(_VSTD::get<_Indx>(__bound_args), __args)...);
}
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( push )
-#pragma warning ( disable : 4296 )
-#endif
-
template<class _Fp, class ..._BoundArgs>
class __bind
#if _LIBCPP_STD_VER <= 17 || !defined(_LIBCPP_ABI_NO_BINDER_BASES)
@@ -323,10 +309,6 @@ public:
}
};
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( pop )
-#endif
-
#if defined(__CUDACC__) && defined(_MSC_VER)
# define Y_CUDAFE_MSVC_BUG
#endif
diff --git a/contrib/libs/cxxsupp/libcxx/include/__functional/function.h b/contrib/libs/cxxsupp/libcxx/include/__functional/function.h
index d1c815bd8a6..8951299d398 100644
--- a/contrib/libs/cxxsupp/libcxx/include/__functional/function.h
+++ b/contrib/libs/cxxsupp/libcxx/include/__functional/function.h
@@ -969,18 +969,11 @@ class _LIBCPP_TEMPLATE_VIS function<_Rp(_ArgTypes...)>
__func __f_;
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( push )
-#pragma warning ( disable : 4348 )
-#endif
template <class _Fp, bool = _And<
_IsNotSame<__uncvref_t<_Fp>, function>,
__invokable<_Fp, _ArgTypes...>
>::value>
struct __callable;
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( pop )
-#endif
template <class _Fp>
struct __callable<_Fp, true>
{
diff --git a/contrib/libs/cxxsupp/libcxx/include/__functional/hash.h b/contrib/libs/cxxsupp/libcxx/include/__functional/hash.h
index f39f44ea082..f1d5e27343a 100644
--- a/contrib/libs/cxxsupp/libcxx/include/__functional/hash.h
+++ b/contrib/libs/cxxsupp/libcxx/include/__functional/hash.h
@@ -411,20 +411,12 @@ struct _PairT {
size_t second;
};
-// Disable double inline warning.
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( push )
-#pragma warning ( disable : 4141 )
-#endif
_LIBCPP_INLINE_VISIBILITY
inline size_t __hash_combine(size_t __lhs, size_t __rhs) _NOEXCEPT {
typedef __scalar_hash<_PairT> _HashT;
const _PairT __p = {__lhs, __rhs};
return _HashT()(__p);
}
-#ifdef _LIBCPP_COMPILER_MSVC
-#pragma warning ( pop )
-#endif
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
template<class _Tp>