StackOverflow Questions for Tag: compile-time-constant

Code Complete
Code Complete

Reputation: 3206

Why `switch(null)` is a compile error but `switch(str)` is fine with str being `static final String str = null;`?

Score: 3

Views: 114

Answers: 2

Read More
Jonathan Mee
Jonathan Mee

Reputation: 38949

Is strlen Optimized out for String Literals?

Score: 4

Views: 1791

Answers: 3

Read More
AShelly
AShelly

Reputation: 35590

Can I compute pow(10,x) at compile-time in c?

Score: 13

Views: 25764

Answers: 10

Read More
AstroRP
AstroRP

Reputation: 267

How is a decompiler able to recognize a compiled constant?

Score: 3

Views: 809

Answers: 2

Read More
Christopher Leong
Christopher Leong

Reputation: 402

Enum convert to string using compile time constants

Score: 2

Views: 1385

Answers: 1

Read More
Kijewski
Kijewski

Reputation: 26043

Meta programming: Declare a new struct on the fly

Score: 15

Views: 2795

Answers: 3

Read More
Oleksandr
Oleksandr

Reputation: 3764

Do Java compilers calculate constant expressions during the compilation?

Score: 0

Views: 38

Answers: 0

Read More
xmllmx
xmllmx

Reputation: 42379

Why does std::is_copy_constructible not behave as expected?

Score: 6

Views: 245

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132086

Will const and constexpr eventually be the same thing?

Score: 5

Views: 805

Answers: 1

Read More
hardyrama
hardyrama

Reputation: 125

constant-time implementation of variable rotation RC6 cipher

Score: 1

Views: 85

Answers: 1

Read More
y.luis.rojo
y.luis.rojo

Reputation: 1824

Error in string array initializer: initializer element is not constant

Score: 1

Views: 1498

Answers: 2

Read More
Nizam
Nizam

Reputation: 623

Compile Time Constant

Score: 1

Views: 1141

Answers: 2

Read More
djv
djv

Reputation: 15774

How to use Environment.NewLine as an optional parameter default value

Score: 2

Views: 441

Answers: 2

Read More
Leonardo Raele
Leonardo Raele

Reputation: 2823

What is the best approach or alternative to constant references?

Score: 2

Views: 206

Answers: 2

Read More
string QNA
string QNA

Reputation: 3210

How can I get a generic parameter type name at compile time?

Score: 9

Views: 1214

Answers: 1

Read More
noob_programmer
noob_programmer

Reputation: 37

Template requires compile-time const value

Score: -2

Views: 87

Answers: 1

Read More
Cactus
Cactus

Reputation: 27636

Turn a function into a precomputed lookup table without going through Template Haskell

Score: 3

Views: 346

Answers: 0

Read More
ABu
ABu

Reputation: 12299

C++: name of a value may have linkage

Score: 4

Views: 80

Answers: 1

Read More
jhilgeman
jhilgeman

Reputation: 1583

Set Attribute Value at Compile Time

Score: 3

Views: 1072

Answers: 1

Read More
Triynko
Triynko

Reputation: 19194

Will this comparison be compiled into a constant Boolean value in a generic class?

Score: 3

Views: 604

Answers: 2

Read More
PreviousPage 8Next