c++ Initializing a struct with an array as a member

后端 未结 4 1311
旧巷少年郎
旧巷少年郎 2020-12-24 13:28

Edited again because it originally wasn\'t clear that I\'m trying to initialize the arrays at compile time, not at run time...


I\'ve got the following reduced

4条回答
  •  遥遥无期
    2020-12-24 13:55

    VLA is only supported in C99. C++ doesn't support that. From http://gcc.gnu.org/c99status.html, gcc supports VLA now.

提交回复
热议问题