Top "Constant-expression" questions

error: switch quantity not an integer

I have researched my issue all over StackOverflow and multi-google links, and I am still confused. I figured the best …

c++ string switch-statement constant-expression
C++ expected constant expression

#include <iostream> #include <fstream> #include <cmath> #include <math.h> #include <iomanip&…

c++ arrays constant-expression
Example of something which is, and is not, a "Constant Expression" in C?

I'm a tad confused between what is and is not a Constant Expression in C, even after much Googleing. Could …

c constant-expression
Why are lambda expressions not allowed in an unevaluated operands but allowed in the unevaluated portions of constant expressions?

If we look at the draft C++ standard section 5.1.2 Lambda expressions paragraph 2 says (emphasis mine going forward): The evaluation of …

c++ c++11 lambda c++14 constant-expression
How to set string (or AnsiString) constant in the TVarRec?

I want to pass the formatting arguments Args into the Format function. I found some examples of that, but I …

string delphi constant-expression open-array-parameters