PR libstdc++/90454.cc path construction from void*
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 May 2019 20:12:06 +0000 (21:12 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 13 May 2019 20:12:06 +0000 (21:12 +0100)
commitbceb07e3584c9d8ea3e5760636ae24ff7f8606ff
tree548aa85b283f5123201fab5a3f4c86265bd3d498
parent0dd50fc6f13c02d9d548fd57e7f8f7020241e317
PR libstdc++/90454.cc path construction from void*

Make the filesystem::path constructors SFINAE away for void* arguments,
instead of giving an error due to iterator_traits<void*>::reference.

PR libstdc++/90454.cc path construction from void*
* include/bits/fs_path.h (path::_Path): Use remove_pointer so that
pointers to void are rejected as well as void.
* include/experimental/bits/fs_path.h (path::_Path): Likewise.
* testsuite/27_io/filesystem/path/construct/80762.cc: Also check
pointers to void.
* testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.

From-SVN: r271134
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/construct/80762.cc
libstdc++-v3/testsuite/experimental/filesystem/path/construct/80762.cc