Union member as array reference?

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
kamaji
New User
Posts: 3
Joined: Wed Mar 17, 2010 1:55 pm

Union member as array reference?

Post by kamaji »

Is it possible to put a reference to an array as a member in a union? For example:

Code: Select all

union my_union {
  unsigned char& str[];
  unsigned int n;
};
I'm just getting "Parse error before '[' token" when I try that.
Cheers


Post Reply