libstdc++: Fix deduction guide for std::span (PR93426)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 27 Jan 2020 10:30:03 +0000 (10:30 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 27 Jan 2020 10:55:19 +0000 (10:55 +0000)
commit389cd88ce797e2a4345eab8db478a3b8eba798e8
tree26224fd954b7b85b5d52be5c32de1e632ac60587
parente648e57efca6ce6d751ef8c2038608817b514fb4
libstdc++: Fix deduction guide for std::span (PR93426)

The deduction guide from an iterator and sentinel used the wrong alias
template and so didn't work.

PR libstdc++/93426
* include/std/span (span): Fix deduction guide.
* testsuite/23_containers/span/deduction.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/span
libstdc++-v3/testsuite/23_containers/span/deduction.cc [new file with mode: 0644]