r271134 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon May 13 20:12:00 GMT 2019


Author: redi
Date: Mon May 13 20:12:06 2019
New Revision: 271134

URL: https://gcc.gnu.org/viewcvs?rev=271134&root=gcc&view=rev
Log:
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.

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



More information about the Libstdc++-cvs mailing list