[libc++] span: Fix incorrect return type of span::subspan
authorLouis Dionne <ldionne@apple.com>
Tue, 11 Feb 2020 10:57:35 +0000 (11:57 +0100)
committerLouis Dionne <ldionne@apple.com>
Tue, 11 Feb 2020 10:58:45 +0000 (11:58 +0100)
commit92a1f65f17d7a560c6ad388d9f2e8f1d77f6f04a
treecb5507edeab709f599b43cb517ce895b19a80ad5
parent5ba931a84a3466aebab5d6dde3525e7a27c40c28
[libc++] span: Fix incorrect return type of span::subspan

The extent of the returned span was always std::dynamic_extent, which
is incorrect.

Thanks to Michael Schellenberger Costa for the patch.

Differential Revision: https://reviews.llvm.org/D71997
libcxx/include/span
libcxx/test/std/containers/views/span.sub/subspan.pass.cpp