J
jalina
Is there something like the static import of java in C++ ? That is to
say to define an alias to a static variable of a class.
For example, if:
class A {
public:
static int sfield;
};
I want to be able to do something like (which I know is not valid):
using A::sfield; <== define sfield as an alias for A::sfield
// ....
sfield = 99; <== sfield is A::sfield
Thank you
say to define an alias to a static variable of a class.
For example, if:
class A {
public:
static int sfield;
};
I want to be able to do something like (which I know is not valid):
using A::sfield; <== define sfield as an alias for A::sfield
// ....
sfield = 99; <== sfield is A::sfield
Thank you