Merge branch 'master' of https://github.com/neilmacintosh/GSL into remove-move-ops

This commit is contained in:
Neil MacIntosh
2018-02-11 14:27:05 -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++;