HomePhabricator

[libc++] span: Fix incorrect return type of span::subspan

Authored by ldionne on Feb 11 2020, 2:57 AM.

Description

[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

Details