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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -