StackOverflow Questions for Tag: rule-of-five

lvalue
lvalue

Reputation: 51

Do I need to respect the rule of five here?

Score: 2

Views: 655

Answers: 2

Read More
SZYoo
SZYoo

Reputation: 437

How to handle conflict between virtual destructor and "Rule of 0"?

Score: 3

Views: 149

Answers: 1

Read More
uuu777
uuu777

Reputation: 891

move constructor/assignment for a trivial class in a linked list

Score: -1

Views: 92

Answers: 1

Read More
weno
weno

Reputation: 856

Base class virtual destructor - rule of five?

Score: 3

Views: 638

Answers: 1

Read More
Vasilii Rogin
Vasilii Rogin

Reputation: 167

Reasons to have special copy assignment operator instead of simple destructor and in-place constructor

Score: 1

Views: 179

Answers: 2

Read More
LeXav
LeXav

Reputation: 143

C++ - clang tidy complain about rule of X?

Score: 1

Views: 286

Answers: 1

Read More
3DMage
3DMage

Reputation: 13

What is the relationship between the Rule of Five, Inheritence, and Polymorphism in C++?

Score: 0

Views: 262

Answers: 1

Read More
Myrddin Krustowski
Myrddin Krustowski

Reputation: 771

Can assignment operations which declared as default have reference qualifiers?

Score: 0

Views: 68

Answers: 1

Read More
Hashnut
Hashnut

Reputation: 377

How should I deal with the destructor, when making a custom vector with a template class?

Score: 2

Views: 111

Answers: 2

Read More
joaerl
joaerl

Reputation: 1062

C++ PIMPL using std::unique_ptr and rule of five

Score: 3

Views: 278

Answers: 0

Read More
alexeykuzmin0
alexeykuzmin0

Reputation: 6440

Is CppCoreGuidelines C.21 correct?

Score: 17

Views: 2100

Answers: 2

Read More
Rsevero
Rsevero

Reputation: 330

Is this a proper implementation of the Rule of Five (or Rule of Four and 1/2)?

Score: 0

Views: 465

Answers: 1

Read More
Daniel H
Daniel H

Reputation: 7463

Implement C++ assignment operator in terms of constructor

Score: 0

Views: 472

Answers: 0

Read More
Andrea
Andrea

Reputation: 55

C++ Rule of 5 with inheritance implementation

Score: 1

Views: 319

Answers: 0

Read More
Josu Goñi
Josu Goñi

Reputation: 1274

What is the minimal class to extend for a no copy / no move type?

Score: 2

Views: 353

Answers: 1

Read More
incubus
incubus

Reputation: 1019

Rule of five when using polymorphism

Score: 1

Views: 328

Answers: 0

Read More
Adomas Baliuka
Adomas Baliuka

Reputation: 1620

Defining interfaces (abstract classes without members) in C++

Score: 1

Views: 2257

Answers: 2

Read More
Yiğit
Yiğit

Reputation: 55

What is the difference between declaring a copy constructor with "= default" or not declaring it at all?

Score: 1

Views: 221

Answers: 1

Read More
user_185051
user_185051

Reputation: 436

std::vector with elements allocated on the heap - do I need rule of 5?

Score: 1

Views: 235

Answers: 2

Read More
Stefan Bauer
Stefan Bauer

Reputation: 413

Why is a class with an explicitly declared move constructor failing `std::is_move_constructible_v`?

Score: 2

Views: 268

Answers: 1

Read More
PreviousPage 1Next