set non member function friend inside the class