Skip to content

Commit f3bc9dd

Browse files
committed
Reword 3 occurrences of "special operations"
See #2224
1 parent 5b98c70 commit f3bc9dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CppCoreGuidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6597,7 +6597,7 @@ Writing out the bodies of the copy and move operations is verbose, tedious, and
65976597

65986598
##### Enforcement
65996599

6600-
(Moderate) The body of a special operation should not have the same accessibility and semantics as the compiler-generated version, because that would be redundant
6600+
(Moderate) The body of a user-defined operation should not have the same semantics as the compiler-generated version, because that would be redundant.
66016601

66026602
### <a name="Rc-delete"></a>C.81: Use `=delete` when you want to disable default behavior (without wanting an alternative)
66036603

@@ -22648,7 +22648,7 @@ Prevent leaks. Leaks can lead to performance degradation, mysterious error, syst
2264822648
// ...
2264922649
};
2265022650

22651-
This class is a resource handle. It manages the lifetime of the `T`s. To do so, `Vector` must define or delete [the set of special operations](#Rc-five) (constructors, a destructor, etc.).
22651+
This class is a resource handle. It manages the lifetime of the `T`s. To do so, `Vector` must define or delete [the copy, move, and destruction operations](#Rc-five).
2265222652

2265322653
##### Example
2265422654

@@ -22795,7 +22795,7 @@ To provide complete control of the lifetime of the resource. To provide a cohere
2279522795

2279622796
##### Note
2279722797

22798-
If all members are resource handles, rely on the default special operations where possible.
22798+
If all members are resource handles, rely on the compiler-generated operations where possible.
2279922799

2280022800
template<typename T> struct Named {
2280122801
string name;

0 commit comments

Comments
 (0)