mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
typo and c++17 feature removal (bool_constant)
This commit is contained in:
parent
4fc733f88c
commit
606100f7f0
@ -90,7 +90,7 @@ using wzstring = wchar_t*;
|
|||||||
template <typename T, T Sentinel>
|
template <typename T, T Sentinel>
|
||||||
span<T, dynamic_range> ensure_sentinel(T const* const seq, ptrdiff_t const max = PTRDIFF_MAX)
|
span<T, dynamic_range> ensure_sentinel(T const* const seq, ptrdiff_t const max = PTRDIFF_MAX)
|
||||||
{
|
{
|
||||||
auto const it = std::find(seq, seq + max, Sentinal);
|
auto const it = std::find(seq, seq + max, Sentinel);
|
||||||
Ensures(*it == Sentinel);
|
Ensures(*it == Sentinel);
|
||||||
return{ seq, it - seq };
|
return{ seq, it - seq };
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ namespace details
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename U = std::remove_cv_t<T>>
|
template <typename T, typename U = std::remove_cv_t<T>>
|
||||||
using is_char_t = std::bool_constant<
|
using is_char_t = std::integral_constant<bool,
|
||||||
std::is_same<char, U>::value || std::is_same<wchar_t, U>::value>;
|
std::is_same<char, U>::value || std::is_same<wchar_t, U>::value>;
|
||||||
|
|
||||||
template <typename T, typename U = std::remove_pointer_t<T>>
|
template <typename T, typename U = std::remove_pointer_t<T>>
|
||||||
|
Loading…
Reference in New Issue
Block a user