My usage of enum class (VS2012):
class matrix {
public:
enum class operation_type {ADD, MULT};
matrix(operation_type op);
...
}
and in another fragment I use
matrix* m = new matrix(matrix::operation_type::ADD);
If the names are long, this becomes very messy.
Is it possible to somehow import the enum values so that I could write:
matrix* m = new matrix(ADD);
The same regards nested classes - can I import them?