StackOverflow Questions for Tag: compile-time-constant

Siva
Siva

Reputation: 55

String concatenation of compile time constants

Score: 1

Views: 149

Answers: 0

Read More
Roland Illig
Roland Illig

Reputation: 41686

Is a string literal converted to bool valid as part of a constant initializer expression?

Score: 1

Views: 64

Answers: 1

Read More
Omer Erbilgin
Omer Erbilgin

Reputation: 15

Is there a way of getting the executable file's name in C without using argv[0]

Score: 0

Views: 30

Answers: 0

Read More
codesections
codesections

Reputation: 9600

What's the difference between $?CLASS and ::?CLASS

Score: 8

Views: 140

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132086

Compile-time ceiling function, for literals, in C?

Score: 2

Views: 535

Answers: 2

Read More
paxdiablo
paxdiablo

Reputation: 882206

What's the difference between equ and db in NASM?

Score: 42

Views: 29463

Answers: 3

Read More
Stefan Bormann
Stefan Bormann

Reputation: 693

Concatenate compile time constant strings with characters whose character code comes from a #define

Score: 3

Views: 577

Answers: 2

Read More
JensB
JensB

Reputation: 939

Array constant not evaluating to constant even though only constexpr functions called in initialization

Score: 0

Views: 106

Answers: 1

Read More
Korfu
Korfu

Reputation: 831

How to create a compile time const string "n" characters long for NUnit Testcase

Score: 1

Views: 728

Answers: 1

Read More
xmllmx
xmllmx

Reputation: 42379

Why does constexpr not compute at compile-time for a string literal?

Score: 0

Views: 108

Answers: 0

Read More
Armen Michaeli
Armen Michaeli

Reputation: 9160

How to efficiently implement an immutable graph of heterogenous immutable objects in C++?

Score: 3

Views: 636

Answers: 3

Read More
Yongwei Wu
Yongwei Wu

Reputation: 5582

Legitimate to initialize an array in a constexpr constructor?

Score: 15

Views: 1854

Answers: 2

Read More
Yoga
Yoga

Reputation: 1196

How to get CFBundleShortVersionString as a constant

Score: 4

Views: 2351

Answers: 1

Read More
Luca
Luca

Reputation: 1776

alignas with pack expansion not working in Visual Studio 2019?

Score: 1

Views: 180

Answers: 1

Read More
user16783784
user16783784

Reputation:

Contradictory definitions about the Order of Constant Initialization and Zero Initialization in C++

Score: 6

Views: 175

Answers: 1

Read More
Wusiki Jeronii
Wusiki Jeronii

Reputation: 171

Constant in separate namespace using class/struct with a big constuctor

Score: 0

Views: 56

Answers: 1

Read More
beroal
beroal

Reputation: 397

Why is `CMSG_SPACE` not a constant function in Rust?

Score: 5

Views: 171

Answers: 1

Read More
Fowlron
Fowlron

Reputation: 99

In which order are constant functions evaluated when assigned to constant variables?

Score: 1

Views: 217

Answers: 0

Read More
2012rcampion
2012rcampion

Reputation: 170

Is it possible to have a recursive function computed at compile-time in Rust?

Score: 7

Views: 2009

Answers: 3

Read More
Giorgi Tsiklauri
Giorgi Tsiklauri

Reputation: 11138

Why, when checking compile-time constant, one branch is enough for resolving variable assignation, but is not enough for returning from that branch?

Score: 3

Views: 254

Answers: 1

Read More
PreviousPage 4Next