c++ - [BUG] Reference to array
- Heinz Saathoff (14/14) Jun 27 2002 Hi,
- Walter (1/1) Jul 01 2002 Ok, I got it! -Walter
Hi, here is another bug for Walter to chase <g> int Array[10][3]; int main() { int (&ar)[3] = Array[2]; ar[2] = 10; return 0; }//main ar should be a reference to a onedimensional array of 3 ints. This works with MSVC and lint. Meanwhile I use the pointer method int *ar=Array[2]; Regards, Heinz
Jun 27 2002