I have the following enumeration in my class definition:
static class Myclass {
...
public:
enum encoding { BINARY, ASCII, ALNUM, NUM };
Myclass(Myclass::encoding);
...
}
Then in the definition of the method:
Myclass::Myclass(Myclass::encoding enc) {
...
}
This does not work, but what am I doing wrong? How to pass an enumeration member that is defined inside a class for member methods (and other methods)?
source
share