StackOverflow Questions for Tag: compile-time-constant

orion elenzil
orion elenzil

Reputation: 5443

C# Idiomatic runtime expression which always evaluates to true but is not detected as compile-time constant

Score: 0

Views: 87

Answers: 0

Read More
tomascz
tomascz

Reputation: 245

Static constexpr data member initialized off-class, and a possible workaround?

Score: 1

Views: 1108

Answers: 1

Read More
EmVee
EmVee

Reputation: 81

Can the conditional operator ( ? : ) in C++ be compile time?

Score: 5

Views: 1659

Answers: 2

Read More
Fakher Mokadem
Fakher Mokadem

Reputation: 1099

Where to define class constants in C++?

Score: 4

Views: 2318

Answers: 2

Read More
aerofly
aerofly

Reputation: 71

Basic compile time format string checking using constexpr

Score: 7

Views: 3047

Answers: 1

Read More
Arty
Arty

Reputation: 16747

Something like std::integral_constant but with auto template argument in std C++20 library?

Score: 4

Views: 914

Answers: 2

Read More
rupps
rupps

Reputation: 9907

Static Final Ints in Switch: Why can't this be done?

Score: 2

Views: 1032

Answers: 2

Read More
Richard Pickle
Richard Pickle

Reputation: 89

Initializing very large C++ std::bitset at compile time

Score: 4

Views: 1234

Answers: 3

Read More
Adomas Baliuka
Adomas Baliuka

Reputation: 1620

Sparse matrix-dense vector multiplication with matrix known at compile time

Score: 1

Views: 486

Answers: 2

Read More
shjeff
shjeff

Reputation: 444

How to protect enum assignment

Score: 3

Views: 900

Answers: 3

Read More
Sandeep
Sandeep

Reputation: 9

What is a compile time constant expression in Java?

Score: -1

Views: 360

Answers: 1

Read More
lucmobz
lucmobz

Reputation: 483

Algorithm to generate all array representations of numbers in base 6 of 3 figures, with specific order?

Score: 0

Views: 37

Answers: 0

Read More
old123987
old123987

Reputation: 105

constexpr does not work/apply inside function call

Score: 1

Views: 408

Answers: 2

Read More
TheBojanovski
TheBojanovski

Reputation: 137

Branching out templated code based on a non const bool

Score: 0

Views: 92

Answers: 1

Read More
You Qi
You Qi

Reputation: 9231

is BuildConfig.DEBUG a compile-time constant?

Score: 2

Views: 1274

Answers: 1

Read More
Arty
Arty

Reputation: 16747

Numba - compile time constants optimizations

Score: 6

Views: 383

Answers: 0

Read More
Qwertiy
Qwertiy

Reputation: 21480

Is it possible to inline string without const enum?

Score: 1

Views: 1358

Answers: 1

Read More
AmirSina Mashayekh
AmirSina Mashayekh

Reputation: 520

compile-time constant StringFormat

Score: 1

Views: 132

Answers: 2

Read More
Frank Mi
Frank Mi

Reputation: 462

Where is the description of Constant Folding in the Java Language Specification, Java SE 11 Edition (JLS SE 11)?

Score: 1

Views: 365

Answers: 3

Read More
Dragonight
Dragonight

Reputation: 1193

Is it possible to initialize a variable from an environment variable at compilation time?

Score: 4

Views: 10830

Answers: 1

Read More
PreviousPage 5Next