StackOverflow Questions for Tag: compile-time-constant

Francis Cugler
Francis Cugler

Reputation: 7925

Generating floating point limits at compile time via template arguments and constexpr semantics:

Score: 0

Views: 149

Answers: 2

Read More
Reizo
Reizo

Reputation: 1437

When is declaring a local variable as non-static constexpr beneficial/required?

Score: 6

Views: 670

Answers: 0

Read More
AllTooSir
AllTooSir

Reputation: 49412

Compile-time constants and variables

Score: 55

Views: 48604

Answers: 8

Read More
Exagon
Exagon

Reputation: 5098

Compiletime build up of std::regex

Score: 32

Views: 17738

Answers: 2

Read More
bhillam
bhillam

Reputation: 191

Compile-time Size of Struct Minus Padding

Score: 1

Views: 230

Answers: 1

Read More
Henry Haase
Henry Haase

Reputation: 51

C++ Template specialization for constant variables

Score: 4

Views: 1926

Answers: 2

Read More
philipp2100
philipp2100

Reputation: 272

Why are constexpr functions possibly ill-formed, NDR (10.1.5)?

Score: 2

Views: 75

Answers: 0

Read More
xmllmx
xmllmx

Reputation: 42379

Why is numeric_limits<uint16_t>::max() not equal to -1?

Score: 7

Views: 20389

Answers: 2

Read More
Dmytro Chasovskyi
Dmytro Chasovskyi

Reputation: 3651

How to create compile-time constant in Kotlin from enum?

Score: 14

Views: 9862

Answers: 1

Read More
Matej Kormuth
Matej Kormuth

Reputation: 2285

const fn vs inline attribute

Score: 5

Views: 2233

Answers: 1

Read More
Scheir
Scheir

Reputation: 79

Custom strtoi function compile time issue

Score: 1

Views: 105

Answers: 3

Read More
tjwrona
tjwrona

Reputation: 9035

Is there a way to avoid preprocessor macros when taking an argument from the compiler?

Score: 1

Views: 774

Answers: 2

Read More
Raunak
Raunak

Reputation: 3414

"static let" vs "let" for declaring class specific constants

Score: 3

Views: 1032

Answers: 3

Read More
Ed Staub
Ed Staub

Reputation: 15690

Is there a way to test at compile-time that a constant is a compile-time constant?

Score: 11

Views: 1776

Answers: 3

Read More
Rich Oliver
Rich Oliver

Reputation: 6119

Scala: Compile time constants

Score: 6

Views: 2155

Answers: 2

Read More
Kirill Frolov
Kirill Frolov

Reputation: 408

Compile time text to number translation (atoi)

Score: 9

Views: 645

Answers: 1

Read More
Victor Eijkhout
Victor Eijkhout

Reputation: 5810

Is an initializer list static enough to allow instantiating templates?

Score: 2

Views: 97

Answers: 2

Read More
NSK
NSK

Reputation: 196

How to have a const variable in a for loop for the generation of template classes?

Score: 16

Views: 791

Answers: 5

Read More
Snackoverflow
Snackoverflow

Reputation: 6281

Spring Boot SpEL and configuration property binding to constant expressions

Score: -1

Views: 6501

Answers: 3

Read More
Vagnerr
Vagnerr

Reputation: 3007

Is there a way to override a Perl "use constant" in your unit testing?

Score: 8

Views: 3197

Answers: 5

Read More
PreviousPage 6Next