123456789101112131415161718192021222324252627 |
- diff --git a/include/__functional/bind.h b/include/__functional/bind.h
- index 8a0e3b7..1fded44 100644
- --- a/include/__functional/bind.h
- +++ b/include/__functional/bind.h
- @@ -231,6 +231,10 @@ public:
- }
- };
-
- +# if defined(__CUDACC__) && defined(_MSC_VER)
- +# define Y_CUDAFE_MSVC_BUG
- +# endif
- +
- template <class _Fp, class... _BoundArgs>
- struct is_bind_expression<__bind<_Fp, _BoundArgs...> > : public true_type {};
-
- @@ -238,7 +242,11 @@ template <class _Rp, class _Fp, class... _BoundArgs>
- class __bind_r : public __bind<_Fp, _BoundArgs...> {
- typedef __bind<_Fp, _BoundArgs...> base;
- typedef typename base::_Fd _Fd;
- +# if !defined(Y_CUDAFE_MSVC_BUG)
- typedef typename base::_Td _Td;
- +# else
- + typedef typename tuple<typename decay<_BoundArgs>::type...> _Td;
- +# endif
-
- public:
- typedef _Rp result_type;
|