aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-stdarg.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-04-27 11:07:47 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-04-27 14:04:35 +0100
commit8aadb4fedb17e7a44583a7a5a4e96b1874e1ce98 (patch)
tree586340979d5d7a65919cc1b5c6021fd075e830c6 /gcc/tree-stdarg.c
parent75f8900159133ce069ef1d2edf3b67c7bc82e305 (diff)
downloadgcc-8aadb4fedb17e7a44583a7a5a4e96b1874e1ce98.zip
gcc-8aadb4fedb17e7a44583a7a5a4e96b1874e1ce98.tar.gz
gcc-8aadb4fedb17e7a44583a7a5a4e96b1874e1ce98.tar.bz2
libstdc++: Define net::socket_base::message_flags operators as friends [PR 100285]
The overloaded operators for socket_base::message_flags should only be defined when the message_flags type itself is defined. Rather than duplicate the preprocessor conditional, this moves the operators into the same scope as the type, defining them as hidden friends. As well as fixing the bug, this has all the usual advantages of hidden friends (they are not visible to normal name lookup for unrelated types). For consistency, do the same for the resolver_base::flags bitmask operators too. libstdc++-v3/ChangeLog: PR libstdc++/100285 * include/experimental/internet (resolver_base::flags): Define overloaded operators as hidden friends. * include/experimental/socket (socket_base::message_flags): Likewise.
Diffstat (limited to 'gcc/tree-stdarg.c')
0 files changed, 0 insertions, 0 deletions