You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/c5267.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
-
title: "Compiler warning 3 C5267"
2
+
title: "Compiler warning C5267"
3
3
description: Learn about compiler warning C5267
4
4
ms.date: 11/08/2023
5
5
f1_keywords: ["C5267"]
6
6
helpviewer_keywords: ["C5267"]
7
7
---
8
-
# Compiler warning C5267
8
+
# Compiler warning (level 4) C5267
9
9
10
10
> definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor
11
11
@@ -19,21 +19,21 @@ The relevant sections in the C++ standard are:
19
19
20
20
## Example
21
21
22
-
The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined:
22
+
The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined. Both `/W4` and `/w45267` are required to produce this warning.
|[CD2DBrush::SetOpacity](#setopacity)|Sets the degree of opacity of this brush|
40
-
|[CD2DBrush::SetTransform](#settransform)|Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
31
+
|[`CD2DBrush::Attach`](#attach)|Attaches existing resource interface to the object|
32
+
|[`CD2DBrush::Destroy`](#destroy)|Destroys a `CD2DBrush` object. (Overrides [`CD2DResource::Destroy`](../../mfc/reference/cd2dresource-class.md#destroy).)|
33
+
|[`CD2DBrush::Detach`](#detach)|Detaches resource interface from the object|
|[`CD2DBrush::SetOpacity`](#setopacity)|Sets the degree of opacity of this brush|
39
+
|[`CD2DBrush::SetTransform`](#settransform)|Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
151
+
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
216
+
*`opacity`*\
217
+
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
221
+
Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
@@ -190,7 +190,7 @@ The following warnings are turned off by default in Visual Studio 2022 and later
190
190
|[C5262](../error-messages/compiler-warnings/c5262.md) (level 1, error) | implicit fall-through occurs here; are you missing a `break` statement? Use `[[fallthrough]]` when a `break` statement is intentionally omitted between cases <sup>17.4</sup> |
191
191
| C5263 (level 4) | calling '`std::move`' on a temporary object prevents copy elision <sup>17.4</sup> |
192
192
| C5264 (level 4) | '*variable-name*': 'const' variable is not used <sup>17.4</sup> |
193
-
|[C5267](../error-messages/compiler-warnings/c5267.md)| definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor <sup>17.7</sup> |
193
+
|[C5267](../error-messages/compiler-warnings/c5267.md)(level 4) | definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor <sup>17.7</sup> |
194
194
195
195
<sup>14.1</sup> This warning is available starting in Visual Studio 2015 Update 1.\
196
196
<sup>14.3</sup> This warning is available starting in Visual Studio 2015 Update 3.\
0 commit comments