I have a struct and it's instances like so (there are some other members in my code): ```cpp
struct element {
int id;
}
const element someElement = { 12 };
And somewhere later in the code, I'd like to use it like this: ```cpp
switch(id)
{
case someElement.id:
//stuff
break;
}
However, I get an error saying attempt to access run-time storage on the case (specifically the someElement part is underlined). How/can I do it like this or will I have to hardcode the IDs into the switch?
Thanks.