StackOverflow Questions for Tag: static-initialization

Eduard Rostomyan
Eduard Rostomyan

Reputation: 6556

Prevent static initialization order "fiasco", C++

Score: 18

Views: 13302

Answers: 5

Read More
Dean
Dean

Reputation: 6958

Using C++ new to workaround a static initialization order fiasco

Score: -1

Views: 88

Answers: 0

Read More
Zebrafish
Zebrafish

Reputation: 14318

How are function-local static variables initialised thread-safely?

Score: -1

Views: 111

Answers: 1

Read More
Zebrafish
Zebrafish

Reputation: 14318

Why isn't HashMap::new in Rust const given it doesn't allocate?

Score: 0

Views: 87

Answers: 2

Read More
Lukas Eder
Lukas Eder

Reputation: 221155

How to circumvent the size limit of a static initialiser in Java when initialising large amounts of constants

Score: 6

Views: 1573

Answers: 4

Read More
MysteryMoose
MysteryMoose

Reputation: 2363

Intentionally Disregarding Excess Elements in Initializer Warning Under GCC

Score: 0

Views: 86

Answers: 1

Read More
albert
albert

Reputation: 507

initialization inside of an shared library (.so)

Score: 1

Views: 155

Answers: 1

Read More
albert
albert

Reputation: 507

dynamic initialisation of global statics, races and timing

Score: 0

Views: 59

Answers: 1

Read More
Zebrafish
Zebrafish

Reputation: 14318

Is there any way of finding out if the main() function of your program has been entered yet?

Score: 2

Views: 138

Answers: 2

Read More
Zebrafish
Zebrafish

Reputation: 14318

Does this solve the static initialization order fiasco?

Score: 0

Views: 117

Answers: 1

Read More
Irfan Latif
Irfan Latif

Reputation: 667

Why are there two instances created of a singleton Java class?

Score: 1

Views: 641

Answers: 2

Read More
Agent_L
Agent_L

Reputation: 5421

Why Kotlin sealed class object's initialization order changes?

Score: 1

Views: 48

Answers: 2

Read More
lord_nimon
lord_nimon

Reputation: 274

How to initialize an global array to a struct?

Score: 1

Views: 137

Answers: 3

Read More
itsols
itsols

Reputation: 5582

Pascal - hard-coding data in array - shortcut

Score: 3

Views: 882

Answers: 2

Read More
GKxx
GKxx

Reputation: 373

Static-storage variable initialized by calling constexpr function with constexpr arguments

Score: 1

Views: 61

Answers: 1

Read More
undermind
undermind

Reputation: 1841

Constexpr constructor for a static variable results in dynamic initialization

Score: 0

Views: 1046

Answers: 2

Read More
Tobias
Tobias

Reputation: 6507

How to prevent the linker from optimizing away startup code?

Score: 3

Views: 1137

Answers: 2

Read More
abenthy
abenthy

Reputation: 904

Initialization of base classes in Java when accessing a static field

Score: 0

Views: 46

Answers: 1

Read More
Robert
Robert

Reputation: 8683

How can I initialize a const member with a pure function?

Score: 0

Views: 84

Answers: 0

Read More
Zoso
Zoso

Reputation: 3465

call_once over local object's static initialization

Score: 0

Views: 311

Answers: 1

Read More
PreviousPage 1Next