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
Post a Comment