StackOverflow Questions for Tag: compile-time-constant

CPlus
CPlus

Reputation: 4846

Can unexecuted branches of a conditional operator cause undefined behavior at compile-time?

Score: 1

Views: 128

Answers: 1

Read More
CPlus
CPlus

Reputation: 4846

How can I do short string optimization at compile time?

Score: 4

Views: 161

Answers: 2

Read More
SomeoneWithPassion
SomeoneWithPassion

Reputation: 311

Aren't all expressions during constant evaluation also constant expressions?

Score: 4

Views: 269

Answers: 2

Read More
GAMERZNIGHTMARE
GAMERZNIGHTMARE

Reputation: 21

Constexpr / Compile time constant expressions bugs

Score: 1

Views: 80

Answers: 1

Read More
bko
bko

Reputation: 41

C++11 compile time calculation of constant array

Score: 1

Views: 44

Answers: 0

Read More
John Zwinck
John Zwinck

Reputation: 249462

User-defined literal string: compile-time length check

Score: 9

Views: 1875

Answers: 5

Read More
Stefan
Stefan

Reputation: 1309

Using a `constexpr static` function defined in a class to initialize a member of the same class

Score: 0

Views: 55

Answers: 3

Read More
xmllmx
xmllmx

Reputation: 42379

How to extract a value from a variadic template parameter pack by index?

Score: 5

Views: 4543

Answers: 1

Read More
lighthouse
lighthouse

Reputation: 553

In C++ 11 Is there any way to branch by if a function parameter is compile-time constant or not?

Score: 10

Views: 1424

Answers: 2

Read More
Jack Stodart
Jack Stodart

Reputation: 13

In Rust can you associate a constant value to each enum variant and then collect those values at compile time?

Score: 1

Views: 522

Answers: 1

Read More
sjiamnocna
sjiamnocna

Reputation: 315

Constant folding in G++

Score: 2

Views: 578

Answers: 1

Read More
Sardine
Sardine

Reputation: 153

C++: efficient compile-time looping and Boost::hana::while_() runtime cost

Score: 0

Views: 163

Answers: 1

Read More
Tyler
Tyler

Reputation: 322

Check if a type is defined via static_assert?

Score: 4

Views: 924

Answers: 1

Read More
SomeoneWithPassion
SomeoneWithPassion

Reputation: 311

constexpr general confusion

Score: 4

Views: 611

Answers: 2

Read More
user3097695
user3097695

Reputation: 1274

How to add attribute with if else C#

Score: 0

Views: 102

Answers: 0

Read More
MPEI_stud
MPEI_stud

Reputation: 125

"Precompile" function in python, compile-time computations

Score: 2

Views: 1221

Answers: 2

Read More
user1095108
user1095108

Reputation: 14603

constexpr pow() function compiler fail

Score: 1

Views: 234

Answers: 1

Read More
user2718593
user2718593

Reputation: 131

Can C-preprocessor can output as a string the evaluation of compiled known constants values(e.g. 150000UL/1000UL)? #define arithmetics

Score: 1

Views: 58

Answers: 1

Read More
Pioneer_11
Pioneer_11

Reputation: 1280

workaround for not being able to use natural log in constant assignment

Score: 1

Views: 367

Answers: 0

Read More
Cactus
Cactus

Reputation: 27636

Load file contents into a static array of bytes

Score: 4

Views: 1985

Answers: 3

Read More
PreviousPage 2Next