INFO: Default Assignment Used, Not User-Defined operator=() (104650)
The information in this article applies to:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 5.0
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q104650 SUMMARY
The Microsoft "C++ Language Reference" for C/C++ version 7.0 states the
following:
...if the class declares a user-defined operator=() that takes an
argument of type "reference to class-name", no default assignment
operator is generated.
(See the Memberwise Assignment and Initialization section of the Special
Member Functions chapter.) This statement may be confusing. However, the
term "argument" means formal parameter, not actual parameter.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbCompiler kbCPPonly kbinfo KB104650 |
---|
|