StackOverflow Questions for Tag: delegating-constructor

NewBie003
NewBie003

Reputation: 79

MSVC rejects delegating constructor using base class alias, adopted from the base class

Score: 7

Views: 230

Answers: 1

Read More
Brandon
Brandon

Reputation: 23498

How do you delegate a constructor (call a constructor from another)?

Score: 62

Views: 57322

Answers: 4

Read More
Shravan Rajput
Shravan Rajput

Reputation: 9

Despite having clang 15.0.0, vscode on mac os 14.1.1 my code isnt compiling according to newer c++ versions

Score: 0

Views: 894

Answers: 0

Read More
NoamV
NoamV

Reputation: 115

C++ Error checking before constructor delegation

Score: 1

Views: 56

Answers: 1

Read More
turbulencetoo
turbulencetoo

Reputation: 3681

C++ delegating constructor with initialization list. Which inits happen?

Score: 3

Views: 3777

Answers: 1

Read More
Mutating Algorithm
Mutating Algorithm

Reputation: 2758

Copy constructor calling the default constructor during delegation instead of the appropriate one

Score: 0

Views: 73

Answers: 1

Read More
okovko
okovko

Reputation: 1901

Do C++11 delegated ctors perform worse than C++03 ctors calling init functions?

Score: 11

Views: 940

Answers: 4

Read More
Howard Hinnant
Howard Hinnant

Reputation: 218700

How to handle constructors that must acquire multiple resources in an exception safe manner

Score: 36

Views: 3919

Answers: 3

Read More
NeutronStar
NeutronStar

Reputation: 2157

C++ constructor delegation, but how to (sort of) invert?

Score: 0

Views: 81

Answers: 1

Read More
user1832484
user1832484

Reputation: 371

Why partially initializing a class and then invoking delegating ctor fails?

Score: 1

Views: 87

Answers: 2

Read More
einpoklum
einpoklum

Reputation: 131435

Can I use "this" with delegating constructors?

Score: 0

Views: 101

Answers: 1

Read More
Jimmy Y.
Jimmy Y.

Reputation: 91

Error: expression cannot be used as an function

Score: 1

Views: 2080

Answers: 1

Read More
trexxet
trexxet

Reputation: 338

C++: choosing a `const char *` vs `std::string` when using delegating constructor

Score: 1

Views: 1234

Answers: 3

Read More
W.Joe
W.Joe

Reputation: 345

What is the difference between delegating constructors in the member initializer list and in the body of constructors

Score: -4

Views: 853

Answers: 1

Read More
Memos Electron
Memos Electron

Reputation: 660

Delegating constructor gives segmentation fault when using class field for argument

Score: 10

Views: 1227

Answers: 2

Read More
Sergey
Sergey

Reputation: 8238

Delegating copy constructor and const data initialization

Score: 6

Views: 1956

Answers: 2

Read More
user4546925
user4546925

Reputation:

No matching function in multiple inheritance

Score: 1

Views: 986

Answers: 2

Read More
Destructor
Destructor

Reputation: 14438

constructor delegates to itself in g++ & clang++

Score: 4

Views: 905

Answers: 1

Read More
nodakai
nodakai

Reputation: 8001

C++11 constructor delegation with aggregate initialization

Score: 5

Views: 433

Answers: 3

Read More
Yuri Astrakhan
Yuri Astrakhan

Reputation: 9955

How to forward overloaded constructor call to another constructor in C++/CLI

Score: 7

Views: 6552

Answers: 4

Read More
PreviousPage 1Next