var length arrays on the stack are not compatable with standard C++