Hi all,
I am trying to do the following in C++
[code]
static const int dataWhen i try to compile the above code in C++, I get the error as:Code:={status_1 : 32, status_2 : 192, status_3 : 35 }; typedef enum int [data[status_1]-1:0] { enum_value = 2, enum_value = 4 };
Error: Non constant expression
The following expression should be a constant.
Expression: data[status_1]
How can I access the value '32' from above array??