While moving the definition of a friend template out of the class definition I found this error.
Please compile the attached file and have a look at the ReleaseAll function. The file is part of Loki. -- Summary: call of friend template is ambiguous Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: syntheticpp at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486