c++ - Declare the same non-member function twice? -


i have class , class b

i define non member method using , b

double operator*(const a& a, const b& b); 

is declare a.h , b.h @ same time since can considered belong both , b?

is declare a.h , b.h @ same time since can considered belong both , b?

it possible declare since declaration, , not definition. other that, personal taste whether so, or put common header, , on.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -