FIX: Non-const Conversion Operators Allowed on const Object (132165)
The information in this article applies to:
- Microsoft C/C++ for MS-DOS 7.0
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Professional Edition 2.1
This article was previously published under Q132165 SYMPTOMS
Visual C++ illegally allows use of non-const member functions with const
objects. Because of this, const data could be modified.
Visual C++ correctly generates errors in most situations where non-const
member functions are used on const objects, but fails to generate errors in
the case of non-const conversion operators.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug was corrected in Microsoft
Visual C++, 32-bit Edition, version 4.0.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbbug kbfix KB132165 |
---|
|