Use macros for the friend function implementations