[all-commits] [llvm/llvm-project] 92a1f6: [libc++] span: Fix incorrect return type of span::...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Feb 11 02:58:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 92a1f65f17d7a560c6ad388d9f2e8f1d77f6f04a
      https://github.com/llvm/llvm-project/commit/92a1f65f17d7a560c6ad388d9f2e8f1d77f6f04a
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M libcxx/include/span
    M libcxx/test/std/containers/views/span.sub/subspan.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list