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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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