Article ID: 122443
Article Last Modified on 7/5/2005
/* Compile options needed: none
*/
/* -- test.cpp -- */
typedef int ARRAY[2];
typedef const int CONST_ARRAY[2];
void copy ( const ARRAY src, ARRAY dest );
void copy1( CONST_ARRAY src, ARRAY dest );
class CTest
{
private:
ARRAY pts[2];
public:
void operator=( const CTest& src );
};
void CTest :: operator=( const CTest& src )
{
for ( int i=0; i<2; i++ )
{
copy ( src.pts[i], pts[i] ); // Generates C2664
copy1( src.pts[i], pts[i] ); // Workaround
}
}
Additional query words: 2.00 9.00 buglist2.00
Keywords: kbbug kbfix KB122443