I would like to use an array of const int in a switch/case statement in C++. Is it possible? So far I've tried something like:

```
int main()
{
    int const tab[3] = {1,2,3};
    int value(2);
    switch(value)
    {
        case tab[1]:
            cout << "result is: " << tab[0]<< endl;
    }
    return 0;
}

```

However the compiler keeps telling me:

```
.../main.cpp|11|error: the value of ‘tab’ is not usable in a constant expression

```

Well I declared my array as "int const", isn't it enough?