Search code examples
Can't you just make a constexpr array by making a constexpr function that returns an std::array?...


c++c++17constexpr

Read More
Constexpr find for array using c++17...


c++arraysc++17constexpr

Read More
Undefined reference error to static constexpr data member...


c++c++11arduinoconstexprundefined-reference

Read More
Explicitly constexpr default comparisons...


c++language-lawyerc++20constexprc++23

Read More
Most efficient way to determine if an integer is odd or even using modern C++ techniques...


c++performancec++17constexpr

Read More
`constexpr vector` still fails, while there's stated to be supported in cppreference...


c++c++20constexpr

Read More
C++1y/C++14: Assignment to object outside its lifetime is not allowed in a constant expression?...


c++language-lawyerconstexprc++14

Read More
Object's state changes after its construction and before a member function call...


c++visual-c++c++17constexprcopy-constructor

Read More
May object pointer be always compared with nullptr in a constant expression?...


c++pointerslanguage-lawyerconstexprrvalue

Read More
Copy elision (e.g. NRVO) during constant evaluations...


c++visual-c++language-lawyerconstexprcopy-elision

Read More
Inaccurate compile-time computation of Fibonacci sequence in a recursive lambda...


c++lambdaconstexprc++23explicit-object-parameter

Read More
C++ Compile-Time Class With std::vector Member Variable and Use It's Data at Run-Time...


c++gccc++20constexprcompile-time

Read More
Works in GCC, MSVC error C3615: constexpr function 'GPSinfo_T::GPSinfo_T' cannot result in a...


c++constexpr

Read More
How Do Compilation and Linking Affect constexpr Declarations Across Multiple Files in C++?...


c++translationconstexpr

Read More
C++ check if statement can be evaluated constexpr...


c++template-meta-programmingconstexprc++20if-constexpr

Read More
How does C++ handle constexpr evaluation for non-static member function pointers on runtime objects?...


c++language-lawyerconstexprcompile-time-constant

Read More
Equivalent ternary operator for constexpr if?...


c++constexprc++17if-constexpr

Read More
In GCC, inside a lambda, I can get constexpr variable from a non-constexpr template lambda, but not ...


c++templateslambdac++20constexpr

Read More
Can you call a static constexpr member function at compile time?...


c++c++20constexprc++23requires-expression

Read More
get constexpr variable from a lambda function is fine , but compile fail (Visual C++) and fine (gcc)...


c++lambdalanguage-lawyerc++20constexpr

Read More
C++23 constexpr size limitations? Iterating through 0x4000 = ok, to 0x5000 = not a constant expressi...


c++constexprc++23consteval

Read More
Is there a performance benefit to using c++'s std(::ranges)::uninitialized_... algorithms, and i...


c++initializationconstexprstd-rangesstatic-assert

Read More
How can I obtain a C++ expression's type, at compile time (i.e. constexpr'ly)?...


c++reflectionconstexprcompile-timec++-faq

Read More
variable conditionally declared constexpr according to its initialization expression...


c++constexprinitializer

Read More
Why is floating-point zero-divide forbidden in a constexpr?...


c++constexprdivide-by-zero

Read More
Can C++ compilers cache the result of constexpr functions?...


c++c++11templatesconstexpr

Read More
How to pass constexpr to constructor?...


c++constructorconstexpr

Read More
Passing a string literal to a template char array parameter...


c++c++20constexprstring-literalscompile-time

Read More
How to print non-structural results of constexpr functions at compile time with clang++?...


c++gccclangc++20constexpr

Read More
Why is adding another simple constructor make a simple class not a literal type anymore?...


c++language-lawyerconstexpr

Read More
BackNext