Fix narrowing conversions in string_view types
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Dec 2017 16:10:31 +0000 (16:10 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Dec 2017 16:10:31 +0000 (16:10 +0000)
commitad8fda29e6274dd28aa11d15e98cc777f56ffb37
treecbcd2bcd1eedc33308c2d88a1941d9e0541edb7f
parentf03858e51d91334e1645222fa40b1f6bd563fb61
Fix narrowing conversions in string_view types

* include/experimental/string_view (basic_string_view::_S_compare):
Use value-init so narrowing conversions are not ill-formed.
* include/std/string_view (basic_string_view::_S_compare): Likewise.

From-SVN: r255321
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/string_view