Class not having copy constructor issue?
<p>I have a class which does not have copy constructor or <code>operator=</code> overloaded.
The code is pretty big but the issue is around this pseudo-code:</p>

<pre><code>ClassA object1(x,y);
object1.add(z)
myVector.push_back(object1);

//Now when I retrieve from myVector and do add it
// apparently creates another object
myVector.at(index).add(z1);
</code></pre>

<p>Like I said it is pseudo-code. I hope it make sense to experts out there!</p>

<p>So, ClassA looks like this (of course not all data members included) </p>

<pre><code>Class ClassA {

private:
    int x;
    string y;
    ClassB b;
    vector&lt;int&gt; i;
public:
    int z;

}
</code></pre>

<p>Since ClassB b is a new data member for this release, is the need of copy constructor now become a must?
Thanks again all of you for responding.</p>

<pre><code>Class ClassB {
private:
vector&lt;ClassC*&gt; c;
Class D
}
Class ClassC {
private:
vector&lt;ClassE*&gt; e;
}
Class ClassD{
private:
vector&lt;ClassF*&gt; f;
}
</code></pre>

<p>Then ClassE and ClassF have basic types like int and string.</p>
