If I write something such as this:
class myclass { #define ADD(x,y) {return x+y} public: } is the define private to my class?
note that I am defining it in *.hpp and I want to make sure that if I include this hpp to another source code, the other source code don't have access to this define.
Is there any better solution than using #define in C++ which can do the same thing?
What about using? is it private to my class or not?
class myclass { using std; public: }
usingshould be its owns question.