r261711 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Mon Jun 18 18:59:00 GMT 2018
Author: redi
Date: Mon Jun 18 18:59:44 2018
New Revision: 261711
URL: https://gcc.gnu.org/viewcvs?rev=261711&root=gcc&view=rev
Log:
LWG 2989 hide path iostream operators from normal lookup
By only defining these operators as friends (with no namespace-scope
declaration) they can only be found by ADL and do not participate in
overload resolution for arguments of types other than path.
LWG 2989 hide path iostream operators from normal lookup
* include/bits/fs_path.h (operator<<, operator>>): Define inline as
friends.
* testsuite/27_io/filesystem/path/io/dr2989.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/filesystem/path/io/
trunk/libstdc++-v3/testsuite/27_io/filesystem/path/io/dr2989.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/fs_path.h
More information about the Gcc-cvs
mailing list