StackOverflow Questions for Tag: static-initialization

blonded04
blonded04

Reputation: 503

Minimizing Meyers' singleton overhead

Score: 2

Views: 236

Answers: 3

Read More
blonded04
blonded04

Reputation: 503

Is static initialization order fiasco applicable to C?

Score: 6

Views: 443

Answers: 4

Read More
Gabriel Staples
Gabriel Staples

Reputation: 53065

Is it bad practice to specify an array size using a variable instead of `#define` in C++? (C error: variably modified at file scope)

Score: 2

Views: 2262

Answers: 3

Read More
Tomáš Jančo
Tomáš Jančo

Reputation: 11

C++ data array initialization

Score: 0

Views: 98

Answers: 1

Read More
Jeremy Friesner
Jeremy Friesner

Reputation: 73279

How to force eager-evaluation of templated read-only singleton function?

Score: 1

Views: 51

Answers: 0

Read More
Sathwik Matsa
Sathwik Matsa

Reputation: 43

Is a static initializer executed for global const POD type?

Score: 3

Views: 60

Answers: 1

Read More
Jeremy Friesner
Jeremy Friesner

Reputation: 73279

How to detect a missing string-array-item-initializer at compile-time?

Score: 2

Views: 91

Answers: 3

Read More
user2296145
user2296145

Reputation: 378

Initialization of static thread_local member inside lambda that does not use that member

Score: 0

Views: 95

Answers: 1

Read More
Andrew Goedhart
Andrew Goedhart

Reputation: 967

How not to initialise a static variable with GCC

Score: 2

Views: 264

Answers: 0

Read More
Dmitry Kuzminov
Dmitry Kuzminov

Reputation: 6584

How to avoid deferring the initialization of static storage duration variables?

Score: 4

Views: 293

Answers: 1

Read More
Steven
Steven

Reputation: 720

Can I hold onto the address returned by std::initializer_list<T>::begin()?

Score: 2

Views: 111

Answers: 1

Read More
G Stepanovic
G Stepanovic

Reputation: 1

Initializing static const std::array with a static function removes const (makes it writable)

Score: 0

Views: 359

Answers: 3

Read More
Miguel Hernando
Miguel Hernando

Reputation: 63

Definition of class constants in cpp class declaration

Score: 2

Views: 117

Answers: 1

Read More
ranstar74
ranstar74

Reputation: 19

C++ Dependency on local static variable

Score: 0

Views: 90

Answers: 1

Read More
Asif_102
Asif_102

Reputation: 53

c++ initial value of global array declarer vs initial value of local function array declarer

Score: -2

Views: 174

Answers: 1

Read More
saner
saner

Reputation: 438

Static constructors and field initialization order in C#

Score: 0

Views: 99

Answers: 2

Read More
deppep
deppep

Reputation: 176

static initialization of queue

Score: 0

Views: 655

Answers: 3

Read More
Cedric Martens
Cedric Martens

Reputation: 1199

Why is a global variable initialized with a function after the main label in assembly?

Score: 3

Views: 246

Answers: 0

Read More
Nik Polin
Nik Polin

Reputation: 11

How to define a type so it can be static initialized?

Score: 1

Views: 133

Answers: 1

Read More
Chris
Chris

Reputation: 449

Imitate a static constructor in C++

Score: 5

Views: 3342

Answers: 6

Read More
PreviousPage 2Next