StackOverflow Questions for Tag: compile-time-constant

Owen Johnson
Owen Johnson

Reputation: 2526

Is it possible to check compiler constants at runtime in C#?

Score: 4

Views: 1770

Answers: 3

Read More
Ian Boyd
Ian Boyd

Reputation: 256991

Delphi: All constants are constant, but some are more constant than others?

Score: 22

Views: 7486

Answers: 7

Read More
vectorizor
vectorizor

Reputation: 719

initialize a variable statically (at compile time)

Score: 3

Views: 1996

Answers: 4

Read More
Joshua
Joshua

Reputation: 43317

Overcoming "division operator may only be applied to scalar values"

Score: 2

Views: 65

Answers: 1

Read More
Eunsu Kim
Eunsu Kim

Reputation: 781

M_PI flagged as undeclared identifier

Score: 58

Views: 150421

Answers: 8

Read More
Austin Hyde
Austin Hyde

Reputation: 27456

Java switch statement: Constant expression required, but it IS constant

Score: 230

Views: 369673

Answers: 16

Read More
Matthew
Matthew

Reputation: 10444

How does the C# visual studio compiler treat struct/NULL comparisons?

Score: 4

Views: 205

Answers: 1

Read More
Zebrafish
Zebrafish

Reputation: 14182

Is it possible to get hash values as compile-time constants?

Score: 8

Views: 5081

Answers: 5

Read More
Evan Carroll
Evan Carroll

Reputation: 1

Cannot call non-const fn `<Foo as Default>::default` in constants

Score: 3

Views: 5729

Answers: 1

Read More
smartcaveman
smartcaveman

Reputation: 42266

How to declare a constant Guid in C#?

Score: 86

Views: 72490

Answers: 7

Read More
hlide
hlide

Reputation: 376

How to strip a string given as a const char[] through a constexpr function?

Score: -1

Views: 210

Answers: 1

Read More
sam
sam

Reputation: 856

How does C++ handle constexpr evaluation for non-static member function pointers on runtime objects?

Score: 0

Views: 56

Answers: 1

Read More
djuwaste
djuwaste

Reputation: 21

What is the best way to initalize 2D std::array along with its rows and cols?

Score: 1

Views: 90

Answers: 2

Read More
David Stone
David Stone

Reputation: 28893

constexpr overloading

Score: 61

Views: 17403

Answers: 10

Read More
CPlus
CPlus

Reputation: 4846

What new types and operations can take place in a constexpr in C23?

Score: 0

Views: 303

Answers: 1

Read More
FreonPSandoz
FreonPSandoz

Reputation: 193

How to get the number of items in a Perl list constant?

Score: 2

Views: 118

Answers: 4

Read More
DanielV
DanielV

Reputation: 663

include_str for null terminated string

Score: 0

Views: 859

Answers: 2

Read More
eliaxelang007
eliaxelang007

Reputation: 93

Why doesn't this 'increment then decrement' generic const expression work in Rust?

Score: 2

Views: 77

Answers: 0

Read More
Charles
Charles

Reputation: 1239

Require derived classes to provide a static const value

Score: -2

Views: 154

Answers: 1

Read More
Alan
Alan

Reputation: 1

MSVC accepts constant pointer to int initialized with nullptr as constant expression

Score: 2

Views: 133

Answers: 1

Read More
PreviousPage 1Next