diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-06-18 19:59:44 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-06-18 19:59:44 +0100 |
commit | b0874c667d1bcc7e414f130dd4ec3973d388dbfb (patch) | |
tree | 07be2d2b825895ff064717384af7f979bd573fef /gcc/final.c | |
parent | adac3a685da705d6811d4069f57e1bc73a95a957 (diff) | |
download | gcc-b0874c667d1bcc7e414f130dd4ec3973d388dbfb.zip gcc-b0874c667d1bcc7e414f130dd4ec3973d388dbfb.tar.gz gcc-b0874c667d1bcc7e414f130dd4ec3973d388dbfb.tar.bz2 |
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.
From-SVN: r261711
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions