Backport from mainline
2019-04-26 Jonathan Wakely <jwakely@redhat.com>
* include/experimental/bits/fs_path.h
(path::_S_convert_loc<_InputIterator>): Create const std::string to
avoid redundant call to _S_convert_loc with non-const pointers.
From-SVN: r272305
+2019-06-14 Jonathan Wakely <jwakely@redhat.com>
+
+ Backport from mainline
+ 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/experimental/bits/fs_path.h
+ (path::_S_convert_loc<_InputIterator>): Create const std::string to
+ avoid redundant call to _S_convert_loc with non-const pointers.
+
2019-06-14 Jonathan Wakely <jwakely@redhat.com>
Backport from mainline
_S_convert_loc(_InputIterator __src, __null_terminated,
const std::locale& __loc)
{
- std::string __s = _S_string_from_iter(__src);
+ const std::string __s = _S_string_from_iter(__src);
return _S_convert_loc(__s.data(), __s.data() + __s.size(), __loc);
}