I am using a library with enumerated classes. Here is an example
class TGNumberFormat
{
public:
enum EAttribute { kNEAAnyNumber
kNEANonNegative
kNEAPositive
};
enum ELimit { kNELNoLimits
kNELLimitMin
kNELLimitMax
kNELLimitMinMax
};
enum EStepSize { kNSSSmall
kNSSMedium
kNSSLarge
kNSSHuge
};
};
In the code I have to refer to them as TGNumberFormat::kNEAAnyNumber, for example. I write a GUI that uses these values very often and the code gets ugly. Is there a way to import these listings and just type kNEAAnyNumber? I really do not expect any of these names to overlap. I have tried various ways to use the keyword usingand no one will compile.
smead source
share