Bruno Haible <[EMAIL PROTECTED]> writes: > + /* GCC supports variable-size arrays in C and C++ mode. > + ISO C++ supports variable-size arrays, but some older PGI and Sun > compilers > + don't. */
I don't understand this assertion that ISO C++ supports variable-size arrays. ISO C++98 shows the expression in an array-declarator to be a constant-expression (see section 8.3.4). If a later version of ISO C++ does support variable-size arrays--I don't have any later version of the standard--then why not test that __cplusplus is at least that version? -- "The road to hell is paved with convenient shortcuts." --Peter da Silva