Search code examples
Stroustrup book constexpr example does not compile in VS C++ 2022...

c++constexprconstexpr-function

Read More
Can't use function parameter of a constexpr function in a constant expression...

c++c++11constexprconstexpr-function

Read More
Should I declare a constant instead of writing a constexpr function?...

c++c++11constexprconstexpr-function

Read More
constexpr function that keeps multiplying a number until "it is big enough"...

c++templatesconstexpr-function

Read More
How can I get a constexpr size from a std::set, which I can use to return a std::array with the numb...

c++constexprc++23constexpr-functionc++26

Read More
How do `constexpr` "compile time pointers" work in C++?...

c++pointersconstexprconstexpr-function

Read More
Why is it possible to use the return of a lambda, passed as argument of a constexpr function argumen...

c++constant-expressioncallable-objectconstexpr-function

Read More
Using constexpr for both runtime and compile-time evaluations - passing constexpr value as a functio...

c++c++20constexprconstexpr-function

Read More
Use of constexpr function before definition fails...

c++constexprconstexpr-function

Read More
Where in the C++20 standard (N4860) does it say that an inline function must be defined before its u...

c++c++20inlineconstexpr-function

Read More
Do constexpr functions have to be defined before they are used?...

c++constexprconstexpr-function

Read More
Given C++23 relaxations on constexpr, can't constexpr be the default?...

c++constexprlanguage-designc++23constexpr-function

Read More
virtual and constexpr before up to C++17...

c++virtualconstexpr-function

Read More
Why does gcc 12.2 not optimise divisions into shifts in this constexpr function called from main()...

c++g++compiler-optimizationinteger-divisionconstexpr-function

Read More
What are the conditions that `constexpr` will start a new constant expression context?...

c++c++20constexprconstexpr-function

Read More
Why should constexpr functions contain exactly one return statement?...

c++constexprconstexpr-function

Read More
error while trying to compile .data() from std::array as a constexpr function in c++20...

c++c++20constexprstdarrayconstexpr-function

Read More
how to check that const array members grow monotonically at compile time...

c++constexprconstexpr-function

Read More
Is it possible with C++20 to have a constexpr function return a tuple of types that have static cons...

c++c++20constexprconstexpr-function

Read More
A constexpr function that calculates how deep a std::vector is nested...

c++templatesconstexprconstexpr-function

Read More
Why does full `constexpr` enabling of a data structure cause the compiled code to be bigger?...

c++templatescompiler-constructionconstexprconstexpr-function

Read More
Implementation of typed tuple wrapper...

c++metaprogrammingtemplate-meta-programmingconstexpr-function

Read More
constexpr result from non-constexpr call...

c++c++11constexprconstexpr-function

Read More
literal type in constexpr expression and template parameter...

c++c++17constexprnon-type-template-parameterconstexpr-function

Read More
A "constexpr" function should not be declared "inline"...

c++destructorsonarlintinline-functionsconstexpr-function

Read More
What is the advantage of constexpr virtual functions in C++20?...

c++c++20constexprvirtual-functionsconstexpr-function

Read More
Compiler can't execute constexpr expression...

c++templatesc++17constexprconstexpr-function

Read More
Why doesn't constexpr function returning std::string doesn't compile when outside templated ...

c++templatesconstexprconstexpr-function

Read More
Concatenate string literals at compile time...

c++17variadic-templatesstring-concatenationconstexpr-function

Read More
Why constexpr method can return correctly class members whose value change during execution?...

c++constexpr-function

Read More
BackNext