StackOverflow Questions for Tag: designated-initializer

mu5e
mu5e

Reputation: 115

C++11 designated initializers for Union

Score: 3

Views: 85

Answers: 1

Read More
uni
uni

Reputation: 611

std::make_unique and designated initializers

Score: 1

Views: 549

Answers: 2

Read More
MateuszGierczak
MateuszGierczak

Reputation: 426

Designated initializers in C++20

Score: 42

Views: 30708

Answers: 3

Read More

Can't understand this C syntax. Designated initialization of an array of structs?

Score: 1

Views: 176

Answers: 1

Read More
Sadeq
Sadeq

Reputation: 8033

Why C++20 doesn't support out-of-order designated initializer?

Score: 37

Views: 10976

Answers: 2

Read More
injoy
injoy

Reputation: 4373

How to initialize a struct using the c style while using the g++ compiler?

Score: 8

Views: 7078

Answers: 4

Read More
Mehreen Azam
Mehreen Azam

Reputation: 1

conflicting types error in C when defining enum and length array

Score: -1

Views: 128

Answers: 1

Read More
user7349461
user7349461

Reputation: 467

What is a designated initializer in C?

Score: 44

Views: 35136

Answers: 3

Read More
Sedenion
Sedenion

Reputation: 6123

Use of earlier member in designated initializer

Score: 11

Views: 597

Answers: 2

Read More
avilapa
avilapa

Reputation: 11

Preserve indentation formatting when using C++20 designated initializers (VS2019)

Score: 0

Views: 77

Answers: 1

Read More
Mark A. Donohoe
Mark A. Donohoe

Reputation: 30378

How do you properly subclass SCNGeometry with your own sources and elements?

Score: 2

Views: 228

Answers: 1

Read More
Matt Joiner
Matt Joiner

Reputation: 118520

What happens to fields not named by a designated initializer?

Score: 21

Views: 3066

Answers: 1

Read More
Palace Chan
Palace Chan

Reputation: 9183

why does this c++ code snippet compile with std=c++17 but fails to compile with std=c++20?

Score: 4

Views: 816

Answers: 1

Read More
JanKXSKI
JanKXSKI

Reputation: 21

Why does MSVC not auto-generate code for an explicitly-defaulted, noexcept default constructor used to copy construct a designated initializer?

Score: 1

Views: 66

Answers: 0

Read More
johnny
johnny

Reputation: 4154

C99 Designated Initializer duplicate index not flagged at all in build output or lint

Score: 5

Views: 1613

Answers: 2

Read More
Anne van Rossum
Anne van Rossum

Reputation: 3149

How to indent in vim for designated initializers?

Score: 0

Views: 107

Answers: 1

Read More
Gabriel Staples
Gabriel Staples

Reputation: 52659

Initializing std::vector<int> with square brackets [] inside; what is happening?

Score: 3

Views: 609

Answers: 1

Read More
Raildex
Raildex

Reputation: 4747

Is referencing a member during Initialization valid?

Score: 2

Views: 65

Answers: 1

Read More
Leon
Leon

Reputation: 2059

How to designated initialize a C++ struct that has a construcotr?

Score: 0

Views: 1111

Answers: 1

Read More
Phil-ZXX
Phil-ZXX

Reputation: 3265

Non-Designated Initializers (Compiler Flag Warning)

Score: 2

Views: 83

Answers: 0

Read More
PreviousPage 1Next