These friend functions are declared in between declaration of operators. I suggest to move friend functions at the beginning or at the end of all declaration to improve readability.