+ 3

C++: Are const global variable array sizes part of the standard?

https://code.sololearn.com/cnxo12V7EeFR/?ref=app This is a challenge, and I think that although it compiles, it's not part of the iso standard.

6th May 2018, 4:58 PM
Timon Paßlick
4 odpowiedzi
+ 2
Ace So you don't need a constexpr inside [] but a const which is known at compile time is enough?
6th May 2018, 6:58 PM
Timon Paßlick
+ 2
Ace So it's not required by the standard?
6th May 2018, 7:17 PM
Timon Paßlick
+ 2
Ace No, I'm asking if constexpr is required or if const is enough.
6th May 2018, 7:35 PM
Timon Paßlick
+ 2
Thank you.
6th May 2018, 7:52 PM
Timon Paßlick