Fix filesystem::path for iterators with const value_type
authorJonathan Wakely <jwakely@redhat.com>
Fri, 28 Oct 2016 17:47:57 +0000 (18:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 28 Oct 2016 17:47:57 +0000 (18:47 +0100)
commitfcfceb1afb7bf5cdebb2c52cf71b3d7dc21f11a8
treebf189b03e79aee28cb2dda0d3e4961483ad9930d
parent52e1b91e7156bff9cfdb553eabb4acfb64ecaec6
Fix filesystem::path for iterators with const value_type

* include/experimental/bits/fs_path.h
(path::_S_convert<_Iter>(_Iter, _Iter)): Remove cv-qualifiers from
iterator's value_type.
(path::_S_convert<_Iter>(_Iter __first, __null_terminated)): Likewise.
Do not use operation not supported by input iterators.
(path::__is_path_iter_src): Add partial specialization for const
encoded character types.
* testsuite/experimental/filesystem/path/construct/range.cc: Test
construction from input iterators with const value types.

From-SVN: r241654
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/experimental/filesystem/path/construct/range.cc