I don't know if we specified that in the coding guidelines but I prefer friend definitions at the beginning of the class instead of hidden away somewhere at the end.