I'm trying to create a constant array in managed c++ and am getting stuck. I've searched around but haven't come across any good examples of how to do this.
What I'd like is the equivalent of:
const unsigned char myConstArray = {1,2,3,4,5,6};
Right now I'm staring at this:
literal array<Byte>^ myConstArray = gcnew array<Byte> { 1,2,3,4,5,6};
Which I gather is not right, since Visual Studio complains that I cannot use gcnew in a constant expression. Not sure where to go here, any help would be appreciated.
Cheers,
David