diff --git a/include/string_span.h b/include/string_span.h index 23158ed..86078f3 100644 --- a/include/string_span.h +++ b/include/string_span.h @@ -90,7 +90,7 @@ using wzstring = wchar_t*; template span 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); return{ seq, it - seq }; } @@ -108,7 +108,7 @@ namespace details } template > - using is_char_t = std::bool_constant< + using is_char_t = std::integral_constant::value || std::is_same::value>; template >