Junichi Uekawa wrote: > Hi, > > > > > In standard C++, friend functions that are only declared inside a class > > can only be found by argument-dependent lookup (and can only be defined > > inline, though it's not a syntax error to fail to do so!) > > > > The following patch fixes the compilation errors: > > Hmm... is this the only way to work around ?
As a temporary solution you can use -ffriend-name-injection to enable the old pre-standard behaviour. > Isn't there a better way? Perhaps these functions could be made static members instead of friends. I didn't look at the code in that much detail; there are many packages that have been caught by this change of behaviour and I've been modifying them more or less automatically. Ben. -- Ben Hutchings Teamwork is essential - it allows you to blame someone else.
signature.asc
Description: This is a digitally signed message part