Skip to content

Commit

Permalink
Attempt to satiate the MSVC SFINAE gods.
Browse files Browse the repository at this point in the history
  • Loading branch information
griwes committed Apr 22, 2024
1 parent 34cdd99 commit 259508d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ struct __has_storage_type
static const bool value = false;
};

template <class _Cp, bool _IsConst, typename _Cp::__storage_type = 0>
template <class _Tp>
using __storage_type_t = typename _Tp::__storage_type;

template <class _Cp, bool _IsConst, __storage_type_t<_Cp> = 0>
class __bit_iterator;

template <class _Cp, bool = __has_storage_type<_Cp>::value>
Expand Down Expand Up @@ -1091,7 +1094,7 @@ equal(__bit_iterator<_Cp, _IC1> __first1, __bit_iterator<_Cp, _IC1> __last1, __b
return _CUDA_VSTD::__equal_unaligned(__first1, __last1, __first2);
}

template <class _Cp, bool _IsConst, typename _Cp::__storage_type>
template <class _Cp, bool _IsConst, __storage_type_t<_Cp>>
class __bit_iterator
{
public:
Expand Down

0 comments on commit 259508d

Please sign in to comment.