]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Reorder constraints on std::span::span(Range&&) constructor.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 1 Nov 2021 11:32:39 +0000 (11:32 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 21 Apr 2022 11:13:09 +0000 (12:13 +0100)
commit2b0ddcec0e4cc46852e0a4dd7d00307d46233ec0
tree99c5fa44970b0765dbbd330d01cbd3da24e36b43
parentffb8da2047fef2bd2e6bbabd9c6ff8c99351fb56
libstdc++: Reorder constraints on std::span::span(Range&&) constructor.

In PR libstdc++/103013 Tim Song pointed out that we could reorder the
constraints of this constructor. That's worth doing just to reduce the
work the compiler has to do during overload resolution, even if it isn't
needed to make the code in the PR work.

libstdc++-v3/ChangeLog:

* include/std/span (span(Range&&)): Reorder constraints.

(cherry picked from commit 09bc98098e4ad474d2ba9da52457b29bbd08874b)
libstdc++-v3/include/std/span
This page took 0.055688 seconds and 5 git commands to generate.