Here is the code(in borlandc++ 3.1):
Expand|Select|Wrap|Line Numbers
- class A{
- int i;
- public:A(int val){i=val;
- }
- A(A&a){i=a.i;
- }
- };
- void main()
- {
- A obj(1); A cp1(obj); A cp2=obj;
- }
I belive that the initialization are made by de copy construct, but someone told me that the bitewise copy makes them. Please help me because I'm confused;