Merge from upstream master.

This commit is contained in:
Neil MacIntosh
2018-02-11 13:36:18 -08:00
3 changed files with 3 additions and 5 deletions

View File

@ -98,7 +98,7 @@ namespace details
{
if (str == nullptr || n <= 0) return 0;
span<const CharT> str_span{str, n};
const span<const CharT> str_span{str, n};
std::ptrdiff_t len = 0;
while (len < n && str_span[len]) len++;