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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -